Forum Discussion
Jayson_Gugliett
Nimbostratus
Feb 11, 2008HTTP/1.0 HOST INSERT
What is the best way via an iRule to insert a host into a HTTP/1.0 request. I have several websites sitting one (1) IIS 6.0 Server. HTTP/1.0 request fail when accessin the non-default website. 1.0 hea...
hoolio
Cirrostratus
Feb 11, 2008Hi,
You can include a Host header in HTTP 1.0 requests, so you should just need to insert the host header if it's not there.
If you want to insert a static Host header value, you can use something like this:
when HTTP_REQUEST {
if {not ([HTTP::header exists Host])}{
HTTP::header insert name Host value "myhost.example.com"
}
}Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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