Updated to properly handle HTTP headers

This checks for the entire 'Content-Length: ' string as
opposed to just a few letters.  It also separates the code
that looks for the empty line (which deterimines the start of
the message body).  This was done for readability reasons