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...
bl0ndie_127134
Jan 26, 2005Historic F5 Account
Rusty, the value for Authorization is in the HTTP header, so you don't need to call HTTP::collect in order to extract and persist on that value. Here is a modified rule that I think will do the trick.
when HTTP_REQUEST {
set rpc_id [HTTP::header value "Authorization"]
persist uie $rpc_id
log local0. "WE RECORDED ${rpc_id} AS THE PERSIST VARIABLE"
}
FYI, HTTP::username & HTTP::password will decode and extact the credentials for you.
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