Forum Discussion
zongfeng_101672
Nimbostratus
Mar 29, 2012[HTTP::uri] rewrite fail,help please ,thanks
my f5 has two pool, one pool name is test1, vip is 192.168.1.5 port 80; other pool name is test2,vip is 192.168.1.6 port 80
when user visit http://192.168.1.5/admin,I wish f5 dispatch thi...
hoolio
Cirrostratus
Mar 29, 2012Hi Zongfeng,
Up until 11.0, the values for HTTP::path, HTTP::uri and other commands are cached within the same iRule event priority even if you modify them. The values are still changed for the request though. So what you're seeing is expected even though the URI has been updated. You can verify this by logging the values in a later HTTP_REQUEST event using priority:
when HTTP_REQUEST priority 501 {
log local0. "Updated URI in 501: [HTTP::uri]"
}
Here is a list of at least some of the HTTP:: commands which are cached:
HTTP::password
HTTP::username
HTTP::host
HTTP::path
HTTP::query
HTTP::request_num
HTTP::status
HTTP::uri
HTTP::is_keepalive
HTTP::is_redirect
HTTP::request
Again this was fixed in 11.0 so the return values are updated when they're changed.
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