pete:
Quote:
I send a GET request and the server comes back with 400, Bad Request,
which rfc2616 10.4.1 says must be (as I infer) a syntax error in
request. |
Aye.
Quote:
The GET request I send: "GET index.html HTTP/1.0\n\n" |
There are two syntax errors:
1. The Request-URI can't be a relative-path reference (how would you
resolve it?). Use an absolute path-reference, e.g., </foo> (note the
initial slash).
2. Request-Lines must end in CRLF - probably \r\n in your notation.
By the way, "indexes" are rarely indexes and ".html" is generally
pernicious. (Sorry, close as I could get to obHTML!)
--
John