W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2003

Re: Confused by HTTP 1.0 vs HTTP 1.1

From: Matthew Stanfield <mattstan@blueyonder.co.uk>
Date: Wed, 05 Mar 2003 18:26:16 +0000
Message-ID: <3E664148.19898C8B@blueyonder.co.uk>
To: Peter Watkins <peterw@usa.net>, Scott Lawrence <scott-http@skrb.org>
CC: ietf-http-wg@w3.org

Peter Watkins wrote:
> 
> > I've developing some software that uses sockets to communicate with web
> > servers using HTTP. I've seen both HTTP/1.0 and HTTP/1.1 used in GET
> > headers. EG. "GET / HTTP/1.0" and "GET / HTTP/1.1". So far I've been using
> > HTTP 1.0 in my GET headers but while browsing this list's archives I saw
> > that HTTP 1.1 is in use (EG. the thread "HTTP 1.1, proxy servers, and
> > failed connections") and wondered whether I should in fact be using 1.1
> > instead.
>
> It sounds like you've been sending a minimal HTTP/1.0 request to these
> servers, and tried simply changing the HTTP/1.0 to HTTP/1.1 in the initial
> request line. HTTP 1.1 also requires requests to provide a Host header.
> Read the RFC for details, but I think you'll find that most servers accept
> properly-formatted HTTP 1.0 or HTTP 1.1 requests -- probably HTTP 0.9,
> also, but let's not go there. ;-)
> 
> --
> Peter Watkins - peterw@tux.org - peterw@usa.net - http://www.tux.org/~peterw/


Scott Lawrence wrote:
> 
> (most likely you are not including a 'Host' header - it was not
> required in 1.0, but is in 1.1).

Many thanks Peter and Scott. You are absolutely correct, I was under the
impression that you just needed to replace the HTTP/1.0 with 1.1 in my GET
headers. Sorry if my question was trivial for the list. Thanks for not
telling me to RTFM.

Regards,

..matthew
Received on Wednesday, 5 March 2003 13:27:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:49:22 GMT