curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Ranged PUTs, Content-Range, and Content-Length

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 3 May 2019 15:55:51 +0200 (CEST)

On Thu, 2 May 2019, Christopher Head via curl-library wrote:

>> CURLOPT_RANGE specifically as far as I know is only supposed to be
>> used for download, not upload (can anyone confirm?)
>
> And yet, looking at the source code, there are explicit conditionals to
> check for CURLOPT_RANGE and turn it into a Content-Range header in an
> upload.

As I mentioned in the issue [3814], curl does support ranged PUT requests
since basically the beginning of time and there are even tests that verify
this.

3814 = https://github.com/curl/curl/issues/3814

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-05-03