From eada2900988efbd5a17d3d0f051d4eae6929e5d3 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Mon, 3 Oct 2022 14:00:19 -0400 Subject: [PATCH] CURLOPT_HTTPPOST.3: bolden the deprecation notice Ref: https://github.com/curl/curl/pull/9621 Closes https://github.com/curl/curl/pull/9637 --- docs/libcurl/curl_formadd.3 | 2 +- docs/libcurl/opts/CURLOPT_HTTPPOST.3 | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/libcurl/curl_formadd.3 b/docs/libcurl/curl_formadd.3 index 92135bf818..04e10b3f2a 100644 --- a/docs/libcurl/curl_formadd.3 +++ b/docs/libcurl/curl_formadd.3 @@ -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 diff --git a/docs/libcurl/opts/CURLOPT_HTTPPOST.3 b/docs/libcurl/opts/CURLOPT_HTTPPOST.3 index d9a7053363..3941664eb6 100644 --- a/docs/libcurl/opts/CURLOPT_HTTPPOST.3 +++ b/docs/libcurl/opts/CURLOPT_HTTPPOST.3 @@ -32,6 +32,8 @@ CURLOPT_HTTPPOST \- multipart formpost content CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPPOST, struct curl_httppost *formpost); .SH DESCRIPTION +\fBThis option is deprecated.\fP Use \fICURLOPT_MIMEPOST(3)\fP instead. + 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. @@ -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 -- 2.47.3