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 i...
hooleylist
Jul 30, 2012Cirrostratus
Most 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]"
}
}
Aaron
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