F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

JG's avatar
JG
Icon for Cumulonimbus rankCumulonimbus
Jan 19, 2014

HTTP::header "Host" and HTTP::host: Any difference?

'HTTP::header "Host"' and 'HTTP::host' seem to return the same thing: the HTTP "Host:" header, according to the irule manual pages I can find.

 

I wonder what will happen if HTTP 1.0 is used, and there is no "Host:" header sent to the server. How do I get the hostname used by the user? Bear in mind that http::uri does not necessarily contain the hostname unless in a forward proxy situation.

 

1 Reply

  • uni's avatar
    uni
    Icon for Altocumulus rankAltocumulus

    If there is no Host header you can't determine what hostname the client used.