Forum Discussion
Adrian_Turcu_10
Nimbostratus
Oct 30, 2007Help With HTTP_RESPONSE
Hello Gurus
Could someone help me with a quick rule to replace a header in the response back to the client, please?
My problem is like follows: we have a poxi app (not proxy) and t...
Adrian_Turcu_10
Nimbostratus
Oct 30, 2007They are standard ports for HTTP and HTTPS.
I believe it could be something like this, but I failed to substract from the location header the part that I'm insterested:
when HTTP_REQUEST {
set shost [getfield [HTTP::host] ":" 1]
set smethod [HTTP::HTTP::method]
}
when HTTP_RESPONSE {
if { [HTTP::status] starts_with "3" } {
set rlocation [HTTP::header "Location"]
set ruri
HTTP::header replace Location $smethod://$shost$ruri
}
}
How do I extract the URI form the Location header in the response from the client?
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