I had created simple server in terminal
python -m SimpleHTTPServer 8000
when I send command curl -I http://localhost:8000
and command result was a request:
127.0.0.1 - - [07/Aug/2016 14:53:22] "GET / HTTP/1.1" 200 -
but response was a HTTP/1.0
HTTP/1.0 200 OK
Server: SimpleHTTP/0.6 Python/2.7.12
Date: Sun, 07 Aug 2016 10:02:08 GMT
Content-type: text/html; charset=utf-8
Content-Length: 9747
curl -v http://localhost:8000
* Rebuilt URL to: http://localhost:8000/
* Trying ::1...
* connect to ::1 port 8000 failed: Connection refused
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET / HTTP/1.1
> Host: localhost:8000
> User-Agent: curl/7.43.0
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: SimpleHTTP/0.6 Python/2.7.12
< Date: Sun, 07 Aug 2016 10:02:23 GMT
< Content-type: text/html; charset=utf-8
< Content-Length: 9747
<
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html>
...
</html>
* Closing connection 0
How we can explain this? Why server response was not a HTTP/1.1