Forum Discussion
Rusty_Hale_8009
Nimbostratus
Apr 26, 2005Grab value out of cookie and store it in a header variable
I have information that resides in a cookie:
JetNetUser=XXXXXXXX
I want to grab this information out of the cookie and insert it into the http header and store the value ...
unRuleY_95363
Apr 26, 2005Historic F5 Account
when HTTP_REQUEST {
set auth_user [HTTP::cookie JetNetUser]
HTTP::header insert JetNetUser $auth_user
}
It might be wise to avoid the hyphen character in a variable name as it makes referencing it a bit more cumbersome (you need to always enclose it in braces, eg ${auth-user}). I used the underscore character instead in the above example.
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
