Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/curl/docs/libcurl/opts/CURLOPT_HTTPPOST.3 @ 3:2c135c81b16c
MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:44:09 +0200 |
| parents | b50eed0cc0ef |
| children |
comparison
equal
deleted
inserted
replaced
| 0:6015a75abc2d | 3:2c135c81b16c |
|---|---|
| 1 .\" ************************************************************************** | |
| 2 .\" * _ _ ____ _ | |
| 3 .\" * Project ___| | | | _ \| | | |
| 4 .\" * / __| | | | |_) | | | |
| 5 .\" * | (__| |_| | _ <| |___ | |
| 6 .\" * \___|\___/|_| \_\_____| | |
| 7 .\" * | |
| 8 .\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. | |
| 9 .\" * | |
| 10 .\" * This software is licensed as described in the file COPYING, which | |
| 11 .\" * you should have received as part of this distribution. The terms | |
| 12 .\" * are also available at https://curl.haxx.se/docs/copyright.html. | |
| 13 .\" * | |
| 14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell | |
| 15 .\" * copies of the Software, and permit persons to whom the Software is | |
| 16 .\" * furnished to do so, under the terms of the COPYING file. | |
| 17 .\" * | |
| 18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | |
| 19 .\" * KIND, either express or implied. | |
| 20 .\" * | |
| 21 .\" ************************************************************************** | |
| 22 .\" | |
| 23 .TH CURLOPT_HTTPPOST 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options" | |
| 24 .SH NAME | |
| 25 CURLOPT_HTTPPOST \- specify the multipart formpost content | |
| 26 .SH SYNOPSIS | |
| 27 .nf | |
| 28 #include <curl/curl.h> | |
| 29 | |
| 30 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPPOST, | |
| 31 struct curl_httppost *formpost); | |
| 32 .SH DESCRIPTION | |
| 33 Tells libcurl you want a multipart/formdata HTTP POST to be made and you | |
| 34 instruct what data to pass on to the server in the \fIformpost\fP argument. | |
| 35 Pass a pointer to a linked list of curl_httppost structs as parameter. The | |
| 36 easiest way to create such a list, is to use \fIcurl_formadd(3)\fP as | |
| 37 documented. The data in this list must remain intact as long as the curl | |
| 38 transfer is alive and is using it. | |
| 39 | |
| 40 Using POST with HTTP 1.1 implies the use of a "Expect: 100-continue" header. | |
| 41 You can disable this header with \fICURLOPT_HTTPHEADER(3)\fP. | |
| 42 | |
| 43 When setting \fICURLOPT_HTTPPOST(3)\fP, it will automatically set | |
| 44 \fICURLOPT_NOBODY(3)\fP to 0. | |
| 45 | |
| 46 This option is deprecated! Do not use it. Use \fICURLOPT_MIMEPOST(3)\fP | |
| 47 instead after having prepared mime data. | |
| 48 .SH DEFAULT | |
| 49 NULL | |
| 50 .SH PROTOCOLS | |
| 51 HTTP | |
| 52 .SH EXAMPLE | |
| 53 .nf | |
| 54 /* Fill in the file upload field. This makes libcurl load data from | |
| 55 the given file name when curl_easy_perform() is called. */ | |
| 56 curl_formadd(&formpost, | |
| 57 &lastptr, | |
| 58 CURLFORM_COPYNAME, "sendfile", | |
| 59 CURLFORM_FILE, "postit2.c", | |
| 60 CURLFORM_END); | |
| 61 | |
| 62 /* Fill in the filename field */ | |
| 63 curl_formadd(&formpost, | |
| 64 &lastptr, | |
| 65 CURLFORM_COPYNAME, "filename", | |
| 66 CURLFORM_COPYCONTENTS, "postit2.c", | |
| 67 CURLFORM_END); | |
| 68 | |
| 69 /* Fill in the submit field too, even if this is rarely needed */ | |
| 70 curl_formadd(&formpost, | |
| 71 &lastptr, | |
| 72 CURLFORM_COPYNAME, "submit", | |
| 73 CURLFORM_COPYCONTENTS, "send", | |
| 74 CURLFORM_END); | |
| 75 .fi | |
| 76 .SH AVAILABILITY | |
| 77 As long as HTTP is enabled. Deprecated in 7.56.0. | |
| 78 .SH RETURN VALUE | |
| 79 Returns CURLE_OK if HTTP is enabled, and CURLE_UNKNOWN_OPTION if not. | |
| 80 .SH "SEE ALSO" | |
| 81 .BR CURLOPT_POSTFIELDS "(3), " CURLOPT_POST "(3), " CURLOPT_MIMEPOST "(3)," | |
| 82 .BR curl_formadd "(3), " curl_formfree "(3), " curl_mime_init "(3)" |
