I want to retrieve the first 10k bytes from a URL with curl (using PHP in my case). Is there a way to specify this? I thought CURLOPT_BUFFERSIZE would do this, but it just appears to determine the size of a buffer that is reused until all of the content is retrieved.
Share
This is how i do it in c++
Edit: Just found out you meant in php. Ill see if i can find out how to port it.
Think this should work in php: