On Thu, Apr 11, 2013 at 12:37 PM, Mohammad_Alsaleh <[email protected]> wrote:
> Is there a simple clean way to only retrieve the headers of a GET reply
> and return without retrieving the data.

You can certainly set (1) a CURLOPT_HEADERFUNCTION that stores header
data, (2) a CURLOPT_WRITEFUNCTION that simply returns the number of
bytes sent in, and (3) CURLOPT_PROGRESSFUNCTION (with
CURLOPT_NOPROGRESS set to zero) to cancel after the body starts. Part
#3 is optional.

--
David Strauss
   | [email protected]
   | +1 512 577 5827 [mobile]
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to