On Wed, Apr 2, 2025 at 8:01 AM <debian-u...@howorth.org.uk> wrote:
>
> <to...@tuxteam.de> wrote:
> > On Wed, Apr 02, 2025 at 11:04:17AM +0100, debian-u...@howorth.org.uk
> > wrote:
> >
> >
> > > GET index.html
> >
> > should be:
> >
> > GET index.html HTTP/1.0
> >
> > (Strictly speaking you should close off with twice <CR><LF>, but
> > most web servers are tolerant if you just send two <LF>)
> >
> > Not sending a HTTP version in your request /is/ a bad request,
> > indeed.
>
> Well, practically it makes no difference. If I send with or without an
> HTTP version I get the same Bad Request response. And it makes no
> difference whether I use HTTP/1.0 or HTTP/1.1.
>
> In fact sending an HTTP version is not compulsory and the request must
> be interpreted as HTTP/0.9 if it is not sent.

Small nit: HTTP-Version is required per RFC 2616, Sections 3.1 and 5.1:

   Request-Line = Method SP Request-URI SP HTTP-Version CRLF

The "robustness principle" from RFC 2145 says a server should service
a request with a missing HTTP-Version.

HTTP-Version is optional in Media Type requests.

Jeff

Reply via email to