Changed the way parse_response splits the response into headers and body. One of the explode or array_pop would leave out some data. Now using substr it seems that the issue was resolved.
Spaces to tabs
Merge pull request #40 from alexkappa/master

Use string parsing to parse the CRLF pair separating the headers from the body.
This is a much more stringent way of parsing, plus we're already gathering this
information. Thanks to @alexkappa for this!