Forum Discussion
skbartl_85400
Nimbostratus
18 years agoDetermine 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
18 years agoThe 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
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