Forum Discussion
Wes_98712
Nov 08, 2011Nimbostratus
Header Inserts
I am experiencing a somewhat odd situation. I created an HTTP profile and setup a name value pair in the Request Header Insert (SSL_ENV:On). When I debug in Fiddler to see if the header is inserted, I...
Kurt_Knochner_5
Nov 11, 2011Cirrus
when HTTP_REQUEST {
if { [HTTP::header "HTTP_SSL_ENV"] equals "On" } {
log local0. "HEADER HTTPS is: [HTTP::header "HTTP_SSL_ENV"]"
}
}
Maybe I'm a bit confused now, but why are you looking for the header "HTTP_SSL_ENV" in the iRule?
The log statements tells me that the HTTP header "HTTP_SSL_ENV" was set, not "SSL_ENV" (see iRule above)!
Nov 9 15:29:36 tmm info tmm[7845]: Rule /Common/test_irule : HEADER HTTPS is: On
However, you should set the HTTP header to "SSL_ENV" in the iRule (or profile) on the F5, not "HTTP_SSL_ENV"!. ASP is just using a kind of translation machanism to view the HTTP headers as "variables". They do so by adding HTTP_ in front of the real HTTP header name.
So, on the F5 please add the header "SSL_ENV" and in your ASP code look for the variable "HTTP_SSL_ENV". Is this what you tried and still did not see the header value in your ASP code?
BTW: What do you mean by "If I set it as a String and dump the output it works"? Where do you set "it" as a string?
Regards
Kurt Knochner
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects