Posted by Phil on 01/02/06 04:40
yellow1912 wrote:
> Is there anyway that I can use curl to retrieve only n bytes/characters
> of a file? I want to get some certain information on a remote site, and
> the data I need stays somewhere at the middle of the page, so I dont
> need to retrieve the whole page, which can save me lots of time.
>
> Thanks a lot ^^
>
Try playing around with CURLOPT_RANGE
eg:
curl_setopt($ch, CURLOPT_RANGE, "0-4096");
---------
Phil
[Back to original message]
|