curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Can the CURLOPT_WRITEFUNCTION ever be called when CURLOPT_UPLOAD is set to 1?

From: Tomalak Geret'kal via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 18 Jan 2021 20:08:20 +0000

On 18/01/2021 19:48, Andreas Falkenhahn via curl-library wrote:
> On 18.01.2021 at 15:49 Daniel Stenberg wrote:
>
>> This thread made me refresh the HTTP upload secion in "everything curl":
>> https://ec.haxx.se/libcurl-http/upload
>> Does it perhaps help to shine some light on this?
> Yes, it does. Thanks for the link. So HTTP PUT can respond with contents like a HTML
> page as well? I've always thought that this was reserved for HTTP POST and that HTTP PUT
> was more like an FTP upload because it doesn't involve running a remote web application...
>
The response to a HTTP PUT may have a payload.

PUT does differ from POST more or less in the way you
describe, but in the HTTP sense that has little to do with
their response payloads (if any).

You may wish to read more here:
https://stackoverflow.com/a/5906115/4386278

Cheers


-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-01-18