Forum Discussion

Jayson_Gugliett's avatar
Jayson_Gugliett
Icon for Nimbostratus rankNimbostratus
Feb 11, 2008

HTTP/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

  • 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