curl: How to limit size of GET?

后端 未结 5 772
逝去的感伤
逝去的感伤 2020-12-11 22:03

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 a

5条回答
  •  被撕碎了的回忆
    2020-12-11 22:12

    CURLOPT_RANGE appears to not work in PHP although it's there. At least it didn't have an impact when I tried to use it and a google search will reveal many messages of the same.

提交回复
热议问题