A better way would be to just junk everything before and including the first line with just a CRLF on it. That's what delimits the header from the data.