NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/48810
The following reply was made to PR bin/48810; it has been noted by GNATS.
From: Mateusz Kocielski <shm%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/48810
Date: Tue, 1 Jul 2014 07:11:51 +0000
Thanks for the report. According to the RFC 1945 (which defines HTTP/1.0
HTTP) and RFC 2616 (which defines HTTP/1.1) request looks as follows:
[...]
5 Request
A request message from a client to a server includes, within the
first line of that message, the method to be applied to the resource,
the identifier of the resource, and the protocol version in use.
Request = Request-Line ; Section 5.1
*(( general-header ; Section 4.5
| request-header ; Section 5.3
| entity-header ) CRLF) ; Section 7.1
CRLF
[ message-body ] ; Section 4.3
[...]
The code waits for headers after you sent "GET / HTTP/1.0", that's why
you get 408 (timeout). To complete the request, you should send
additional empty line. (It should be "GET / HTTP/1.0\r\n\r\n").
Home |
Main Index |
Thread Index |
Old Index