cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Why does curl use CRLF line terminators for its --dump-header option?

From: John Meissen <john_at_meissen.org>
Date: Thu, 26 Apr 2012 00:57:50 -0700

tom.dignan_at_gmail.com said:
> So I was just using curl and I banged my head against the wall for about 30
> minutes trying to figure out why my script wasn't working properly, and then I
> realized that --dump-header uses CRLF line terminators. Any chance of getting
> this changed to unix line endings in a future release?

This has nothing to do with curl. The HTTP protocol spec (RFC2616) says that
headers are terminated with CRLF. Curl is only dumping what it's getting from
the server.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-26