How to handle CRLF line endings in grep?

Suppose I have an arbitrary text input that contains CRLF line endings: $ curl -sI http://unix.stackexchange.com | head -4 HTTP/1.1 200 OK Cache-Control: public, max-age=60 Content-Length: 80551 C...