cURL / Mailing Lists / curl-library / Single Mail


Re: accepting/denying a http request based on content length header

From: Aleksandar Lazic <>
Date: Mon, 4 Aug 2008 15:53:42 +0200

Dear Peter,

On Mon 04.08.2008 09:37, Peter Wilkes wrote:


>would anyone be able to point me in the correct curl option to receive
>the header callback so i can build this functionality?

Maybe this can help:


Pass a pointer to a double to receive the content-length of the
download. This is the value read from the Content-Length: field.

and change the
getinfo line to the correct values and try it ;-)


Received on 2008-08-04