curl / Mailing Lists / curl-users / Single Mail


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

From: Dan Fandrich <>
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
Received on 2019-04-11