Forum Discussion
Rusty_Hale_8009
Nimbostratus
Apr 26, 2005Grab cookie contents and insert it as another.
I want to grab the contents of a cookie (from an http post) and insert that value into a new cookie with a different name. This is what I have so far that will not pass syntax:
when HT...
Rusty_Hale_8009
Nimbostratus
Apr 26, 2005Joe, It passed syntax but when I try to display the value in the logs, it is always empty. I can see that value in the tcpdump which shows:
txtUsernameView=556987&txtUsername=00556987&Password=xxxxxxx&target..etc
I am trying to get the value in the txtUsername= and put that value in the auth_user variable. Actually, I see that value on the response - not request. Any suggestions? My ltm logs show this:
Apr 26 16:29:11 tmm tmm[27159]: 01220002:6: Rule User_insert :
Apr 26 16:29:11 tmm tmm[27159]: 01220002:6: Rule User_insert :
Apr 26 16:29:17 tmm tmm[27159]: 01220002:6: Rule User_insert :
Apr 26 16:29:17 tmm tmm[27159]: 01220002:6: Rule User_insert :
Apr 26 16:31:54 tmm tmm[27159]: 01220002:6: Rule User_insert :
Apr 26 16:32:10 tmm tmm[27159]: 01220002:6: Rule User_insert :
My rule in the Big IP is:
when HTTP_RESPONSE {
set auth_user [findstr [HTTP::cookie txtUsername] "txtUsername" 12 "&" ]
HTTP::cookie insert name authuser value $auth_user
log "$auth_user"
}
Thanks for your help Joe.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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