Forum Discussion
Aaron_M__Long_1
Nimbostratus
Sep 27, 2012iRule switch confusion (Version 9.4.4)
So I've created an iRule using the switch statement, but for some reason my logic is failing for every conceivable match. Every condition falls through to the default case. What am I doing wrong?...
Kevin_Stewart
Employee
Sep 27, 2012It's actually a function of the browser and the HTTP protocol. Your browser will implicitly add the "/" to your request if you don't supply a path. In fact the protocol requires a path in the HTTP method statement (ex. GET / HTTP/1.1)
RFC 2616 states (http://www.ietf.org/rfc/rfc2616.txt):
"If the abs_path is not present in the URL, it MUST be given as "/" when used as a Request-URI for a resource (section 5.1.2)"
That's why you'll never see a request with an empty path.
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
