cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to download few bytes of file and then stop the download

From: Guenter Knauf <lists_at_gknw.net>
Date: Wed, 29 Oct 2008 16:30:59 +0100

Hi,
Am Mittwoch, 29. Oktober 2008 15:50:15 schrieb Meir Yanovich:
> im using cURl with the easy handler to visit html pages and it working
> great now i need to do something more advance i need to download binary
> file and check its header
> when i recive the few bytes that contain the header to stop the download .
> that is i need to get only the file header , i dont need the all file .
> what is the best aproch for this?
I would assume a HEAD request would do; see this thread:
http://curl.haxx.se/mail/curlphp-2004-06/0006.html

Günter.
Received on 2008-10-29