Forum Discussion
Rusty_Hale_8009
Nimbostratus
Jan 25, 2005Help getting iRule to persist on info in the payload
I need to be able to go down into the payload and grab a hash value and then use that value to persist with. I have a base rule that I am testing just to get my syntax right.
when HT...
Rusty_Hale_8009
Nimbostratus
Jan 25, 2005I changed the iRule to:
when HTTP_REQUEST_DATA {
set content_length 429496
HTTP::collect $content_length
set rpc-id "TEST-LOG"
{[findstr [HTTP::payload] "Authorization:" 14, 20]}
log local0. "WE RECORDED ${rpc-id} AS THE PERSIST VARIABLE"
HTTP::release
}
I added the fourth line so that I could see if I can get ANY value into the variable. I am tailing the ltm log file to see if any entries appear and I am getting nothing in the log file.
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