Finally fix the hang problem: read() hangs if it does not receive data.
So just read the first line (for now) when reading back the result.
Created a HTTP::_ReadLineFromSocket() method, move read code in there.