Forum Discussion
johns
Employee
Mar 02, 2006iRule recognize blank space in URI?
Hi, I need to detect blank space in URI and either remove it or rewrite it:
www.mysite.com/some content/showme.html
to
www.mysite.com/some%20content/showme.html
...
unRuleY_95363
Mar 02, 2006Historic F5 Account
If the uri in the HTTP request contains a space, then that is actually an illegal request according to the HTTP RFC. This is because HTTP uses spaces to separate the method, uri, and version on the first line of the HTTP request. I'm assuming you are using some kind of homegrown client? To do this, you'll have to parse the request at the TCP layer using the CLIENT_DATA event and the TCP::payload commands. This is because our HTTP engine will only parse up to the space when parsing for the uri. You could try looking in the version to see if the rest of the uri ends up there (see HTTP::version).
HTH
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
