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...
Frank_J_104756
Sep 26, 2007Historic F5 Account
Deb, you are absolutely correct. What I'm ending up with is 2 session cookies. The 1 from the original VS1A that I'm using to select the appropriate pool, plus the cookie from VS2A that I got when the new DNS A record sent me there.
- 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.