curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

consistency in received headers

From: dogma via curl-library <>
Date: Tue, 11 Jun 2024 14:32:06 +0000

When receiving HTTP, the header callback is called at the end with just a CRLF, as specified in CURLOPT_HEADERFUNCTION(3).

But for a file, the ending CRLF comes attached to the Last-Modified header (if there’s a body). I find it unexpected to be fed a header with two CRLFs.

Received on 2024-06-11