Re: accepting/denying a http request based on content length header
Date: Mon, 4 Aug 2008 15:53:42 +0200
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 http://curl.haxx.se/lxr/source/docs/examples/getinfo.c change the
getinfo line to the correct values and try it ;-)
Received on 2008-08-04