Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
curl_formfree(3) | Library Functions Manual | curl_formfree(3) |
NAME
curl_formfree - free a previously build multipart form post chainDESCRIPTION
This function is deprecated. Do not use. See curl_mime_init(3) instead!PROTOCOLS
This functionality affects http onlyEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
struct curl_httppost *formpost;
struct curl_httppost *lastptr;
/* Fill in a file upload field */
curl_formadd(&formpost,
&lastptr,
CURLFORM_COPYNAME, "file",
CURLFORM_FILE, "nice-image.jpg",
CURLFORM_END);
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
curl_easy_perform(curl);
/* then cleanup the formpost chain */
curl_formfree(formpost);
}
}
DEPRECATED
Deprecated in 7.56.0.AVAILABILITY
Added in curl 7.1RETURN VALUE
NoneSEE ALSO
curl_formadd(3), curl_mime_free(3), curl_mime_init(3)2024-11-23 | libcurl |