Forum Discussion
Mazen2006_14317
Nimbostratus
Mar 27, 2014iRule problem: what is the matter whith this iRule?
when HTTP_REQUEST
{
if { [string tolower [HTTP::uri]] starts_with "/necpf/vod-i1-64/cpprospect/" }
{
if { [string tolower [HTTP::uri]] ends_with "/media_cpa/sfr/cpprospect...
giltjr
Nimbostratus
Mar 27, 2014If you want to do something with the URI in a respond you need to set it as a variable in HTTP_REQUEST, something like:
request_URI = [HTTP::uri]
Then in the HTTP_RESPONSE you can check it using $request_URI.
However, if you are trying to do a redirect in HTTP_RESPONSE, I would assume that you really want to do it base on something the server sent, not based on a request the client sent. If you are doing something based on what the client sent, that would be done in 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