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...
Apr 26, 2005
I would start by first logging the value of the cookie itself
set cookie_value [HTTP::cookie txtUsername]
log "txtUserName Value: $cookie_value"
It's unclear to me why you are doing a findstr within the value of the cookie itself (unless you are trying to search at an offset within the cookie). It kind of looks like you are trying to parse the entire HTTP cookie for your entry which is what I believe the HTTP::cookie command does for you. The HTTP::cookie command will return the value of the named cookie which may be all you need. Give it a shot and let us know the contents of your the txtUsername cookie and we can diagnose what's going on with findstr (or if you need it).
-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