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 header requests do not include hostname, ex. HOST: image.xxxxx.com.
Running 9.4.1 on LTM
Any ideas?
Thanks
1 Reply
- hoolio
Cirrostratus
Hi,
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