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 Existing irule is of the below format. This works fine for the first request when the qwa1234 is passed in the URL. However I need the qwa1234 to be stored as cookie and similarly qwa5678 whenever it is passed in the URI. So please advise how to set cookie for this scenarion. If possible please share the entire irule.
when HTTP_REQUEST { set uri [HTTP::uri] if { ($uri ends_with "qwa1234") } { pool lpqwa1234-25046 } elseif { ($uri ends_with "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