mnb_63148
May 29, 2014Nimbostratus
Solved
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