Forum Discussion
alvaro_martinez
Nimbostratus
Sep 21, 2006HTTP Redirect header localtion + uri
Hi,
I have the next reply from web server
HTTP/1.1 302 Moved Temporarily
Set-Cookie: BIGipServerACC-80=674006794.20480.0000; expires=Thu, 21-Sep-2006 11:05:27 GMT; path=/
...
hoolio
Cirrostratus
Oct 02, 2006Hi,
If the original 302 redirect sent from the server contains a port, you can just add the original port to the rule in the string to replace. You don't need to specify the port in the string you are putting in, if it's 80, as it's the default port for http.
when HTTP_RESPONSE {
if { [HTTP::is_redirect] && [string tolower [HTTP::header Location]] contains "host_to_replace:8060" }{
HTTP::header replace Location [string map -nocase {"host_to_replace:8060" "new_host"} [HTTP::header Location]]
}
}
Aaron
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
