php-mod / curl

This library provides an object-oriented and dependency free wrapper of the PHP cURL extension.
MIT License
328 stars 120 forks source link

set body on put #16

Closed ghost closed 2 years ago

ghost commented 9 years ago

how do you set the Curl body on put? I want to send a json body as part of my request to the endpoint and I don't see an "setBody" option of sorts.

zurborg commented 8 years ago

I think #21 addresses this issue. A body should be set with the second argument:

$curl->put($url, $payload);
nadar commented 2 years ago

I am going to close this issue because:

If you think this is still important or there are more/new informations. Please reopen the issue and let us know.