Forum Discussion
jondyke_46152
Nimbostratus
Oct 14, 2008Losing data on redirect irule
I am trying to do a redirect using an irule on one of my virtual servers. However the problem is that the original message is a post rather than a get so when it arrives at the redirected address it is missing the data.
The irule I am currently using is:-
when HTTP_REQUEST {
if {[HTTP::path] eq "/default.asp"}{
HTTP::redirect "http://devbis.assureweb.co.uk/QuoteServer/XMLQuoteserver/Receiver.aspx"
}
}
What can I do instead of a redirect to keep the data intact?
5 Replies
- hoolio
Cirrostratus
Hi Jon - jondyke_46152
Nimbostratus
hmmmm...looks like a similar issue to the other chap only that the it is going to a different VIP. The post is originaly sent to http://publishdev.assureweb.co.uk/default.asp - hoolio
Cirrostratus
Would it work if you rewrote the response which generates the POST request to the correct resource? If so, you could use a stream profile and STREAM::expression iRule. - jondyke_46152
Nimbostratus
Do you know of any examples of rewriting the URI and using another pool I can take a look at? - hoolio
Cirrostratus
To rewrite the URI in the request, you can use HTTP::uri "/new/uri". To rewrite the URI in a response header, you can use 'HTTP::header replace'. To replace content in the response payload, you can use a stream profile and STREAM::expression based iRule.
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