[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [Slightly OT] GET command for virtual hosts?



Dom wrote:
> and www.punter.co.uk is actually hosted by www.provider.com,
> then I get the index page for provider.com, not punter.co.uk.

You have to use HTTP/1.1 syntax instead - this is a virtual host. If you
ask for 'GET / HTTP/1.0' then the server will assume you are asking for
the default visrtual host, which, in most cases is the providers' page.

What you need to do is:

telnet www.punter.co.uk 80
<connect>
GET / HTTP/1.1
Host: www.punter.co.uk
<return>

[Page output for www.punter.co.uk]

HTH

Graeme