Forum Discussion
skbartl_85400
Nimbostratus
Mar 26, 2008Determine URI after setting with HTTP::uri
I have an iRule that uses HTTP::uri to rewrite part of the original URI. For debugging purposes, I would like to write out the value of the new URI to the log. Below is the basic gist of my iRule: ...
hoolio
Cirrostratus
Apr 02, 2008The value for HTTP::uri and most other HTTP:: commands is cached in the same event and priority. So even if you modify the URI with HTTP::uri, logging the value of HTTP::uri will still return the original value. As cmbhatt pointed out, you can save the new value to a variable and then log it. Or to double check the change, you can add a log statement in HTTP_REQUEST priority 501. This should be removed once you're done testing as it adds unnecessary load.
Aaron
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