I am writing a class to parse the HTTP headers.
I need to pick up one particulr line .
The problem is that some servers encode the CRLF with "\r\n" others with "\n".
How to detect or handle different encoding?