Forum Discussion
kykong_107132
Nimbostratus
Mar 16, 2009redirect base on HTTP header
Hi All,
how can i use irule to do redirection base on HTTP header? Basically, if I see HTTP header Cookie exist in HTTP REQEUST header, I will redirect to server 1.
I build this...
You can use HTTP::header exists "Cookie" (Click here) to do this. You would also want to select the pool if the HTTP request does not match your criteria. This ensures if multiple HTTP requests are made on the same TCP connection that the correct pool is selected each time.
Aaron
- bl0ndie_127134Oct 24, 2005Historic F5 AccountWe have been talking about adding a feature to make POST field extraction a little bit easier but for now you will have to do an HTTP::collect and use the HTTP::payload command to access and parse the data.
- Kapil_Sharma_61Oct 26, 2005
Nimbostratus
Thanks for your reply. Let me explain our existing rules and what I am trying to achieve: - unRuleY_95363Nov 01, 2005Historic F5 AccountYou would need to run HTTP::collect when you detect that you are dealing with the form. Then in the HTTP_REQUEST_DATA event, you need to search for the field and can then rewrite the uri to include the data. Try searching for collect and HTTP_REQUEST_DATA to see some examples of collecting HTTP payload.
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