Get only part of the remote file?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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 ^^

Re: Get only part of the remote file?

yellow1912 wrote:
Quoted text here. Click to load it

Try playing around with CURLOPT_RANGE

curl_setopt($ch, CURLOPT_RANGE, "0-4096");


Site Timeline