curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Implicit message type with curl_easy_perform, and how to CURLOPT_PUT/CURLOPT_UPLOAD?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 11 Apr 2019 08:54:35 +0200

On Wed, Apr 10, 2019 at 07:28:33PM -0400, Ray Satiro wrote:
> There is no dedicated option to PUT a string in a resource. The easiest
> way (but not the most correct) is piggyback off a POST option and
> disable (or change) the content-type and method.

IIRC, just setting CURLOPT_UPLOAD = 1 on an HTTP URL does a PUT.

>>> Dan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-04-11