GNURLOPT_PUT(3)
β¨ GNURLOPT_PUT(3) β the curl_easy_setopt options page, bestie edition β¨
okay so real talk, we're in the curl_easy_setopt options corner of the gnurl manual and this one is a little... vintage π
π NAME π
CURLOPT_PUT β the one that makes an HTTP PUT request π«Ά
(yes the page is called GNURLOPT_PUT, yes the option is CURLOPT_PUT, that's just how it is, iykyk)
πΈ SYNOPSIS πΈ
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PUT, long put);
π¦ DESCRIPTION π¦
so you set this parameter to 1 and that tells the library "bestie, use HTTP PUT to transfer the data" π₯ that's the whole vibe.
the data itself is not set here β nope β you gotta set that with CURLOPT_READDATA(3) and CURLOPT_INFILESIZE(3). those two are the main characters of the actual data transfer, this option is just the sign on the door πͺ
π β οΈ deprecated alert β οΈ this option is deprecated since version 7.12.1. Use CURLOPT_UPLOAD(3) instead! not a suggestion, it's literally in the page fr fr.
β DEFAULT β
0, disabled. did nothing, showed up for none of the drama π
π PROTOCOLS π
HTTP β that's it, that's the list π
π AVAILABILITY π
Deprecated since 7.12.1. Do not use. that's not me being dramatic, that is word-for-word the manual π please use CURLOPT_UPLOAD(3).
π RETURN VALUE π
Returns CURLE_OK if HTTP is supported π and CURLE_UNKNOWN_OPTION if not π slay.
π SEE ALSO π
(yes there's a trailing comma, we don't edit the archives β¨)
and that's the page!! π
brought to you by libcurl 7.37.0, dated 17 Jun 2014 β oldie but a goodie, go use CURLOPT_UPLOAD(3) tho bestie π«Άπ§
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms