Forum Discussion
Jeremy_C_Russel
Jul 29, 2012Nimbostratus
HTTP::host is empty??
I have an iRule using [HTTP::host] in a condition. I have one box where a lot of the time, it's coming in as blank, but against my dev box, and another set of boxes, it's fine. Is there a setting inside the F5 that could cause this? I'm stumped!
- it returns the value of the host header, is it possible the request on that box just don't include one? or that there is a device somewhere close which strips the host header?
- it returns the value of the host header, is it possible the request on that box just don't include one? or that there is a device somewhere close which strips the host header?
- dlg_23340CirrusJeremy, if a customer makes an HTTP/1.0 request, there will be no Host header.
- hooleylistCirrostratusMost clients will include a host header in HTTP 1.0, but it's not required until HTTP 1.1. You can check this by logging the [HTTP::version] and [HTTP::header User-Agent] values when [HTTP::host] eq "":
when HTTP_REQUEST { Log client details if the host header is empty if {[HTTP::host] eq ""}{ log local0. "[IP::client_addr]:[TCP::client_port]: Null host header, HTTP [HTTP::version], U-A: [HTTP::header User-Agent]" } }
- Jeremy_C_RusselNimbostratusThanks for the suggestions. This behavior would happen on requests from the same browser and session, sometimes the host field is set, sometimes not. As it turns out, it appears that our web filter appliance is doing some crazy stuff and sniping packets here and there.
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