Forum Discussion
casieowen_20826
Nimbostratus
Jun 25, 2015An http redirect irule that is executing but not actually redirecting
This is my first attempt at implementing an irule. I've written a few variations trying to get something to work. I've included them all below (replacing the sensitive values with xxx). The result...
THi
Nimbostratus
Jul 02, 2015From the fiddler: xxx is host part of the request. HTTP::uri is the URI part of the URL. Ie. path and parameters - and does not contain host. Try URI::host or HTTP::host instead.
From iRules wiki:
HTTP::uri
Returns or sets the URI part of the HTTP request.
For the following URL:
http://www.example.com:8080/main/index.jsp?user=test&login=check
The URI is:
/main/index.jsp?user=test&login=check
URI::host
Returns the host portion of a given URI.
URI::host
HTTP::host¶
Returns (or sets in v11.5+) the value of the Host header of an HTTP request.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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