Forum Discussion
johndegern_4568
Nimbostratus
Apr 30, 2010Forcing lowercase only works the first time
So I am trying to force ALL HTTP requests to lowercase and i'm using this rule:
when HTTP_REQUEST {
HTTP::path [string tolower [HTTP::path]]
}
It works on the host and it wo...
hoolio
Cirrostratus
Apr 30, 2010Hi John,
The iRule is going to rewrite the path before the requests are sent to the pool members. It won't affect the URLs in the response content sent to clients. So when a client clicks on a link or follows a redirect, the address bar will show whatever case the application used in its references to itself. The requested path seen by the web application will always be in lower case.
It would be quite resource intensive to try to parse and rewrite every path from response payloads (and to a lesser extent, the response headers). If you really wanted to do this, you would need to figure out a regular expression which would match the paths. You could then use a stream filter and STREAM::expression based iRule to do this.
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
