This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 25, 2011, 2:01 PM
10 Posts

http headers

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: Obtaining http headers
  • Replies: 1
Hi,
 
How can I get the http header values passed by the browser to the server?  I want to check if people are logging on via mobile phones so I can tailor the response.  headerValue global object is an obvious choice but as ususal there's no documentation available on its use.
 
Cheers
 
Adam.
Aug 25, 2011, 2:08 PM
10 Posts
Re: http headers
This works:
 
var rqst=facesContext.getExternalContext().getRequest();
var p=rqst.getHeader("x-wap-profile");
 
Then test if p is null.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal