Forum Discussion
Is there a command for an iRule to examine to full URL instead of only examining the uri, path, or query?
Is there a command for an iRule to examine the full URL instead of only examining the uri, path, or query? For instance, I want the F5 to evaluate http://example.com/test123. So far, I have only seen references for HTTP::hostname, HTTP::path, HTTP::uri, but nothing that examines both the hostname and the uri altogether.
Thanks.
If you're looking to represent the protocol, the best way is to identify which port the traffic is on. I.E. port 80 means the session is likely HTTP, 443 is likely SSL, etc. There is no specific HTTP iRule command to return the protocol prefix (http, https, etc.).
But yes, other than that, [HTTP::host][HTTP::uri] will get you the entirety of the request.
-Colin
- What_Lies_Bene1Cirrostratus
I don't think so but
can be combined to provide the full URL. However, you'll have to include the protocol too I guess, so[HTTP::host][HTTP::uri]
"http://[HTTP::host][HTTP::uri]"
- JGCumulonimbus
Add "[HTTP::query]" as well.
- What_Lies_Bene1Cirrostratus
No need, [HTTP::uri] includes the query
- Colin_Walker_12Historic F5 Account
If you're looking to represent the protocol, the best way is to identify which port the traffic is on. I.E. port 80 means the session is likely HTTP, 443 is likely SSL, etc. There is no specific HTTP iRule command to return the protocol prefix (http, https, etc.).
But yes, other than that, [HTTP::host][HTTP::uri] will get you the entirety of the request.
-Colin
- mnb_63148NimbostratusThanks, Colin!
Recent Discussions
Related Content
* 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