GNURLOPT_MIMEPOST(3)
π GNURLOPT_MIMEPOST(3) π
okay so this is the GNURLOPT_MIMEPOST(3) page from the curl_easy_setopt options manual β and yes bestie, we're getting into mime posting. πΈ
β¨ NAME β¨
CURLOPT_MIMEPOSTβ set post/send data from mime structure π
π SYNOPSIS π
#include <gnurl/curl.h>
curl_mime *mime;
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MIMEPOST, mime);
π¦ DESCRIPTION π¦
Okay so picture this: you pass in a mime handle that you previously got from curl_mime_init(3). That's the whole vibe, no cap. β¨
This setting is supported by the HTTP protocol to post forms, and by the SMTP and IMAP protocols to provide the e-mail data to send/upload. π
This option is the preferred way of posting an HTTP form, replacing and extending the deprecated CURLOPT_HTTPPOST(3) option. Deprecated is the key word there, bestie. π
π PROTOCOLS π
HTTP, SMTP, IMAP. That's the trio, highkey. π
β AVAILABILITY β
Since 7.56.0. π
π₯ RETURN VALUE π₯
This will return CURLE_OK β lowkey iconic. β
π EXAMPLE π
Using this option implies the use of several mime structure building functions: see https://curl.haxx.se/libcurl/c/smtp-mime.html for a complete example. π¬
π«Ά SEE ALSO π«Ά
mwah π β this page is libcurl 7.56.0, dated 22 Aug 2017, and it's literally GNURLOPT_MIMEPOST(3) signing off. π§π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, 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