Forum Discussion
F5irulelearner_
Nimbostratus
Aug 01, 2014irule to read the url and store as cookie
Hello,
I am working to divert the traffic to a specific server based on the servername passed in the URL. Can you please help with an irule which reads the url and stores it as a cookie
Exa...
F5irulelearner_
Nimbostratus
Aug 04, 2014My complete irule would be something like below. So please advise how to store the cookie value as qwa1234 or qwa5678 whenever they are passed in the URL.
URL Example: www.xyz.com/download.do?app=qwa1234
when HTTP_REQUEST { set uri [HTTP::uri] if { ($uri ends_with "qwa1234") } { pool lpqwa1234-25046 } elseif { ($uri ends_with "qwa5678") } { pool lpqwa5678-25046 } else if { {$cookie equals qwa1234) } { pool lpqwa1234-25046 } else if { {$cookie equals qwa5678) } { pool lpqwa5678-25046 } default pool app-E2-openhome-25046 }
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