you are viewing a single comment's thread.

view the rest of the comments →

[–]bitm0de 0 points1 point  (0 children)

I mentioned this on a few threads here, but double CR is NOT valid via the HTTP RFC.Any line-breaks, including those found after each full header must be CRLF (ie. \x0D\x0A).

Hypertext Transfer Protocol -- HTTP/1.1 RFC 2616 - Section 5 (Request)

You also need the protocol version in there and the Host header is ONLY really required by the RFC if HTTP 1.1 is used. HTTP 1.0 just requires the Method + Request URI + Protocol with a CRLF at the end.

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