Forum Discussion
Andre_Muniz
Nimbostratus
May 23, 2014Redirect http post
Hi, i need to redirect http requests.
I do something like HTTP::redirect https://site.example.com[HTTP::uri]
Its ok for http method get but POST its not OK.
The http request client (method POST) is ...
Kevin_Stewart
Employee
May 23, 2014Perhaps one of the best way to do this is with a 307 redirect. It isn't honored by all browsers, but is intended to preserve the original HTTP method.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::respond 307 Location "https://site.example.com[HTTP::uri]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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