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

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



> I often like to do HTTP in the raw - as you then know exactly
> what's going on.  However, if I do as follows:
> 
> telnet www.punter.co.uk 80
> 
> [..connect messages..]
> 
> GET / HTTP/1.0
> 
> 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.
> 
> What do I do?
Use the correct HTTP GET syntax as defined in the RFC.

Try GET http://www.punter.co.uk/

Otherwise, how is the http daemon supposed to know which site you want to
visit when your virtual sites share an IP?

Nic.