Are you sending an HTTP 1.1 request? If so, I would guess you're getting a different header, Transfer-Encoding: chunked. If that's the case you have two options: parse the chunked data (awkward), or send an HTTP 1.0 request (simple).


Spelling mistakes, grammatical errors, and stupid comments are intentional.