Forum Discussion
Miron_du_Plessi
Sep 27, 2010Nimbostratus
Hiding Web Server
Hi,
We have a current requirement that involves serving web content from two separate web servers trying to make them look like the same from the clients perspective. (this is for migration ...
hooleylist
Sep 27, 2010Cirrostratus
As Hamish suggested, you can check the server response code in HTTP_RESPONSE. You can use HTTP::request in HTTP_REQUEST to save the HTTP request headers. You can use HTTP::retry to retry the request. If you need to potentially retry requests with payloads, you would need to collect the request payload in HTTP_REQUEST with HTTP::collect and then access the payload in HTTP_REQUEST_DATA using HTTP::payload.
Here is a post with a related example:
Redirect if error
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=812647&ptarget=812648
And here is the main HTTP wiki page where you can get details on the mentioned commands and events:
http://devcentral.f5.com/wiki/default.aspx/iRules/http
Aaron
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