Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl_formadd.3: bolden the deprecation notice #9637

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/libcurl/curl_formadd.3
Expand Up @@ -32,7 +32,7 @@ CURLFORMcode curl_formadd(struct curl_httppost **firstitem,
struct curl_httppost **lastitem, ...);
.fi
.SH DESCRIPTION
This function is deprecated. Do not use. See \fIcurl_mime_init(3)\fP instead.
\fBThis function is deprecated.\fP Use \fIcurl_mime_init(3)\fP instead.

curl_formadd() is used to append sections when building a multipart form
post. Append one section at a time until you have added all the sections you
Expand Down
5 changes: 2 additions & 3 deletions docs/libcurl/opts/CURLOPT_HTTPPOST.3
Expand Up @@ -32,6 +32,8 @@ CURLOPT_HTTPPOST \- multipart formpost content
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPPOST,
struct curl_httppost *formpost);
.SH DESCRIPTION
\fBThis function is deprecated.\fP Use \fICURLOPT_MIMEPOST(3)\fP instead.
jay marked this conversation as resolved.
Show resolved Hide resolved

Tells libcurl you want a \fBmultipart/formdata\fP HTTP POST to be made and you
instruct what data to pass on to the server in the \fIformpost\fP argument.
Pass a pointer to a linked list of \fIcurl_httppost\fP structs as parameter.
Expand All @@ -44,9 +46,6 @@ You can disable this header with \fICURLOPT_HTTPHEADER(3)\fP.

When setting \fICURLOPT_HTTPPOST(3)\fP, it will automatically set
\fICURLOPT_NOBODY(3)\fP to 0.

This option is deprecated! Do not use it. Use \fICURLOPT_MIMEPOST(3)\fP
instead after having prepared mime data.
.SH DEFAULT
NULL
.SH PROTOCOLS
Expand Down