Forum Discussion
Brandon_High_10
Nimbostratus
Nov 17, 2004HTTP request rewriting
I want to use the BigIP to do something equivalent to apache's:
ProxyPass http://search.foo.com
ProxyPassReverse http://search.foo.com
...
Brandon_High_10
Nimbostratus
Nov 20, 2004Excellent, it's working now. It wasn't celar to me that a variable set during a HTTP_REQUEST even would still be set during the HTTP_RESPONSE.
I believe I encountered a bug in HTTP::uri though. With:
if { [HTTP::uri] starts_with "/search" } {
HTTP::uri [string range [HTTP::uri] 7 end]
if the value of HTTP::uri is "/search", then it's set equal to an empty string. When the request goes to the server, it's not valid.
So I added:
if { [string length [HTTP::URI] == 0 ] } {
HTTP::uri "/"
}
but the value of HTTP::uri remains an empty string. It seems that once it's zeroed out, it can't be set again.
At the very least, it should still be a valid function/variable, or ideally reset to "/" when the request is sent to the server.
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
