limiting download size using curl
- From: "shikakaa@xxxxxxxxx" <shikakaa@xxxxxxxxx>
- Date: Tue, 26 Feb 2008 08:54:42 -0800 (PST)
Hi!
I have a server I'd like to download hundreds of pages from, and only
get the first few kilobytes of every page to save resources on both
my
and the remote end. Since the server doesn't support HTTP range to
use it in curl like curl_setopt($ch, CURLOPT_RANGE, "0-5000"); I
started looking around and found that using the custom write function
I might be able to do the same.
As I understand it, closing the handle and thus terminating the
transfer from within the callback function is not possible, so I'm a
bit stuck..
How could I get this done? Could someone paste me a fewliner example?
Thanks in advance
Andrew
.
- Follow-Ups:
- Re: limiting download size using curl
- From: www.j2be.com
- Re: limiting download size using curl
- Prev by Date: Re: PHP Reference Guide
- Next by Date: preg_replace
- Previous by thread: Newbie question on being "crippled"
- Next by thread: Re: limiting download size using curl
- Index(es):
Relevant Pages
|