iRule: modifying the uri without a redirect
In this case the user wants to change the uri of a HTTP request without forcing a redirect from the client.
We have a unique situation where a client-based DLL is uploading a file to our...
Published Jul 27, 2005
Version 1.0Jan 11, 2008
It should work as is. The HTTP::uri command takes two forms, if enclosed in braces with no arguments, it returns the URI. If it is passed a parameter then it uses the passed in variable as the new URI.
In the second example, the line
HTTP::uri "/bar[string range $uri 4 end]"
is a URI assignment with the new value being "/bar" concatenated with the 5th character on in the URI.
-Joe