I\'m trying to use curl to fetch only a portion of a page so it will download less data thus making it quicker. I\'ve been testing every possible option i can think of to no
You can use your own write callback (CURLOPT_WRITEFUNCTION) and have that return an error once you've received enough data.
An example using such a write callback can be found here: http://curl.haxx.se/libcurl/php/examples/callbacks.html