Forum Discussion
lbong_53781
Nimbostratus
Oct 01, 2009HTTP::COOKIE not working as expected
I am running LTM 10.0.1
I have the following iRule and run into some issues when there are multiple cookie variable in the header. The Rule seems to only look at the last "Cooki...
lbong_53781
Nimbostratus
Oct 02, 2009Thanks for looking into this.
The issue is not with the header. Its with the evaluation of [HTTP::COOKIE].
When the last Cookie in the header is "My_Cookie" it works fine. When the last Cookie is not, the [HTTP::COOKIE] functions seem to not able to find "My_Cooke".
Below is my test script.
This will fail,
do echo && echo -n "$number ";GET -Ssed -H 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)' -H 'Cookie: TID=5555%2D51020900262051001033859%2D0' -H 'Cookie: My_Cookie=1' -H 'Cookie: CHOSEN_BANNER=1' -H 'Host: mysite.com' http://mysite.com/?test=$number
This will work correctly,
do echo && echo -n "$number ";GET -Ssed -H 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)' -H 'Cookie: TID=5555%2D51020900262051001033859%2D0' -H 'Cookie: CHOSEN_BANNER=1' -H 'Cookie: My_Cookie=1' -H 'Host: mysite.com' http://mysite.com/?test=$number
Thanks
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