Forum Discussion
Cristian_Daniel
Nimbostratus
Dec 20, 2013APM: change HTTP Response
I'm getting a "?" character on a response and I want to change it I'm using this:
when HTTP_RESPONSE {
set iRedirectResp [HTTP::header Location]
log local0. "$iRedirectResp this made match!"
if...
Thomas_Gobet
Nimbostratus
Dec 23, 2013Did you try to add quotes to your URL into your respond line ?
HTTP::respond 302 Location "https://www.reaxis.com" Server CompaniXServer
Or you can try this ?
set iRedirectResp [HTTP::header Location]
log local0. "$iRedirectResp this made match!"
if { [HTTP::header Location] contains "www.reaxis.com?" } {
HTTP::header remove Location
log local0. "the location made match on the IF"
HTTP::respond 302 Location "https://www.reaxis.com" Server CompaniXServer
}
- Cristian_DanielDec 23, 2013
Nimbostratus
Thank you for your response, I made the changes and doesn't work, I think that maybe I'm getting bad the event, because this is on a APM.
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