Forum Discussion
dave_11182
Nimbostratus
Mar 25, 2009Bug with HTTP::path and HTTP requests that use the absolute URL in the Request-Line
I have section code that works like the following (simplified for example)
when HTTP_REQUEST {
log local0. "Path is: [HTTP::path]"
}
if i received a request as follows:
GET /examplepath HTTP/1.1
Host: www.example.org
the i-rule correctly logs "/examplepath". However if a request is received as follows:
GET http://www.example.org/examplepath HTTP/1.1
the i-rule logs "http://www.example.org/examplepath". According to the http spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.htmlsec5) this is valid request form.
The wiki states that HTTP::path only "returns or sets the path part of the HTTP request," so I'm assuming this is a bug. I'm currently using BIG-IP 9.1.2. Is this a known issue resolved in a newer version?
Thanks for any help or direction,
Dave
- hoolio
Cirrostratus
Hi Dave, - dave_11182
Nimbostratus
Thanks for the link, I will take a peak at the solution. I agree that almost no clients do this, but at the very least the documentation is misleading and should be updated to accurately describe what the function actually does. Many iRule developers are not experts in HTTP protocol minutiae and I imagine this could lead to lead to hard to track down bugs for others as well. That said i think the general usefulness of the function is diminished by the current behavior in this scenario.
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