Skip to main content
March 21, 2013
Question

gethttprequestdata() not returning all header info. with CF10, should it?

  • March 21, 2013
  • 1 reply
  • 1159 views

Our Single SignOn agent (SiteMinder) places a custom variable, HTTP_EMPLOYEEID in the header.  Using ASP, I can dump the header info and see that variable/value. But, with a similar CF script, some info, including HTTP_EMPLOYEEID is not there.  Any ideas?

This topic has been closed for replies.

1 reply

Inspiring
March 23, 2013

Try:

GetPageContext().getRequest().getHeader("HTTP_EMPLOYEEID")

If that doesn't work you may also want to check:

CGI.HTTP_EMPLOYEEID

March 25, 2013

Thanks for the help. Unfortunately it didn't work.  I'm working with my IT people, who installed and configured SiteMinder(user authentication agent) so I haven't dug into that, but they insist the problem lies with CF10.  Using the following ASP script I can read the custom header variable EMPLOYEEID:   <%= Request.ServerVariables("HTTP_EMPLOYEEID") %>  But, with my CF script there doesn't appear to be a header variable by that name.      I tried:

GetHttpRequestData().headers.employeeid, then 

GetPageContext().getRequest().getHeader("HTTP_EMPLOYEEID"),

and

CGI.HTTP_EMPLOYEEID

Is there any reason why CF10 would not read the entire header content?  When I cfdump the header I see other variables, but not EMPLOYEEID. Strange.

Inspiring
March 29, 2013

It may be the order that the ISAPI filters are being applied. See: http://www.techbiswas.com/2012/12/coldfusion-siteminder-and-iis.html