Forum Discussion
nit8080_109161
Nimbostratus
Feb 01, 2008http_header("Authorization")
I need the iRule to set persistence based on the “Authorization” value in the HTTP header. On the old version 4 box, I did this by just putting
http_header("Authorization") in the expression fi...
hoolio
Cirrostratus
Feb 04, 2008Hello,
What are the symptoms of the failure? To troubleshoot non-cookie persistence issues, you can check the persistence records via the GUI under Overview >> Statistics >> Persistence Records or via the CLI (using: watch -n1 'b persist all show all').
You might want to check to see if there is a value for the Authorization header before using the value of the header for persistence:
when HTTP_REQUEST {
if {[string length [HTTP::header value "Authorization"]]}{
persist uie [HTTP::header value "Authorization"]
log local0. "[IP::client_addr] -> [HTTP::host][HTTP::uri] had Authorization header value: \
[HTTP::header value "Authorization"]"
}
}Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
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