1CURLOPT_PUT(3)             curl_easy_setopt options             CURLOPT_PUT(3)
2
3
4

NAME

6       CURLOPT_PUT - make an HTTP PUT request
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PUT, long put);
12

DESCRIPTION

14       A  parameter  set  to  1  tells the library to use HTTP PUT to transfer
15       data.  The  data  should  be  set  with  CURLOPT_READDATA(3)  and  CUR‐
16       LOPT_INFILESIZE(3).
17
18       This option is deprecated since version 7.12.1. Use CURLOPT_UPLOAD(3)!
19

DEFAULT

21       0, disabled
22

PROTOCOLS

24       HTTP
25

AVAILABILITY

27       Deprecated since 7.12.1. Do not use.
28

RETURN VALUE

30       Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.
31

SEE ALSO

33       CURLOPT_UPLOAD(3), CURLOPT_HTTPGET(3),
34
35
36
37libcurl 7.61.1                  April 17, 2018                  CURLOPT_PUT(3)
Impressum