Forum Discussion
mburnham_59608
Nimbostratus
Aug 07, 2011can't rewrite uri
Hi all,
I'm trying to do something which I think is supposed to be very basic, but is failing:
when HTTP_REQUEST {
if { [HTTP::version] eq "1.1" } {
if { [HTTP::header is_kee...
hoolio
Cirrostratus
Aug 08, 2011HTTP::uri should be working to rewrite the URI. You can log the updated value by using a later priority HTTP_REQUEST event:
when HTTP_REQUEST {
if { [HTTP::version] eq "1.1" } {
if { [HTTP::header is_keepalive] } {
HTTP::header replace "Connection" "Keep-Alive"
}
HTTP::version "1.0"
}
if {[HTTP::uri] starts_with "/forms/"}{
HTTP::uri "/f5-w-687474703a2f2f6562626f736465762e6d732e636f6d3a37373832$$[HTTP::uri]"
}
}
when HTTP_REQUEST priority 501 {
log local0. [HTTP::uri]
}
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
