Forum Discussion
Carl_Gottlieb_1
Nimbostratus
Apr 16, 2007Modify HTTP resonse redirect
Hi,
I have a webserver generating a 302 redirect to the client, sending them to a location of:
https://www.domain.com/uristuffhere&URI=http://www.domain.com&somemorestuff&URI=http=...
Carl_Gottlieb_1
Nimbostratus
Apr 18, 2007Hi Joe,
Many thanks for this. It didn't work for some reason until I added the replace option, i.e.:
when HTTP_RESPONSE { if { [HTTP::status] eq 302 } { HTTP::header replace "Location" [string map {"http://" "https://"} [HTTP::header "Location"]] } }
It now works perfectly.
Thanks again.
Carl
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