using http1.1 instead of http1.0

Some tools issue HTTP/1.1 requests by default, but what is issued depends on the remote service and what it says it will accept. For example ftp/curl uses 1.1 by default but can be forced to issue /1.0 requests.
 
The version of http is set in the headers sent. wget has an option to send different headers. If you use telnet, you can type in the the header you want.
 
This is a HTTP 1.0 request:
Code:
# nc www.freebsd.org 80
GET / HTTP/1.0

This is a HTTP 1.1 request:
Code:
# nc www.freebsd.org
GET / HTTP/1.1
Host: www.freebsd.org

Note the Host: header. All clients send a HTTP 1.1 request, only very, very old tools don't.
 
Back
Top