Forum Discussion
Lark_53475
Nimbostratus
Aug 19, 2008uri rewrite question
I'm a newbie so forgive if I'm asking a silly question. I haven't been able to get this to work with the examples and responses I've seen on the forum.
I have a distributed third party a...
Deb_Allen_18
Aug 20, 2008Historic F5 Account
stream acts only on the body, not the request URI, even for a POST.
If you want to re-write the request URI inbound to the servers, you need to use the HTTP::uri command, as you started to, with just a small modification to make only that change:
when HTTP_REQUEST {
if { [HTTP::uri] ends_with ">" } {
HTTP::uri [substr [HTTP::uri] 0 ">"]
}
}
You don't need to escape the ">" in either case, but it seems to work either way for both commands.
/deb
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