Forum Discussion

mnb_63148's avatar
mnb_63148
Icon for Nimbostratus rankNimbostratus
May 29, 2014
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

     

5 Replies

  • I don't think so but

    [HTTP::host][HTTP::uri]
    can be combined to provide the full URL. However, you'll have to include the protocol too I guess, so
    "http://[HTTP::host][HTTP::uri]"

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic 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