Forum Discussion
cylinh_171509
Altocumulus
May 02, 2016HELP!!!!! http to https redirect lost SOAP envelops
when i do http to https redirect it loses its SOAP information.
http://abc.com to https://abc.com
If i directly go to https://abc.com or http://abc.com it works perfectly fine. but when i ...
Stanislas_Piro2
Cumulonimbus
May 03, 2016Hi,
the problem is when response is 302 redirect, client will request GET method instead of requesting with the same method and content.
with 307 redirect, the client will resend the same request as the first one:
try this irule:
when HTTP_REQUEST {
if {([HTTP::method] equals "POST") && ([HTTP::header Content-Type] contains "application/xml")} {
HTTP::respond 307 noserver Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]
} else {
HTTP::respond 302 noserver Location https://[getfield [HTTP::host] ":" 1][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