[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [Slightly OT] GET command for virtual hosts?
- Subject: Re: [cobalt-users] [Slightly OT] GET command for virtual hosts?
- From: jens@xxxxxxxxxxxxxxxxxxxx (Jens Kristian Søgaard)
- Date: Thu Oct 26 13:10:43 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Dom Latter <d.latter@xxxxxxx> writes:
> > Use the correct HTTP GET syntax as defined in the RFC.
> > Try GET http://www.punter.co.uk/
> Doesn't seem to work.
Ofcourse, as it isn't the right syntax (the one who said otherwise
obviously didn't read the RFC, he's referring to).
The right way is to open a connection to port 80 and send:
GET / HTTP/1.1
Host: www.punter.co.uk
(and two newlines)
This should bring up the index file for that virtual host.
--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/