curl_formfree

Syntax

#include <curl/curl.h>

void curl_formfree(struct curl_httppost * form);

Parameters

form Pointer returned from a previous call to curl_formadd.

Return Values

None.

Description

curl_formfree is used to cleanup data previously built/appended with curl_formadd. This must be called when the data has been used, which is typically after curl_easy_perform has been called.

The pointer to free is the same pointer passed to the CURLOPT_HTTPPOST option, which is the firstitem pointer from the curl_formadd invoke(s). form is the pointer as returned from a previous call to curl_formadd and may be NULL.

Do Not Call From

None.

See Also

HTTP Client Library (libcurl)
libcurl API Functions
libcurl Error Codes
curl_formadd

Revision History

2013/09/18 Conversion
2013/05/08 Automated cleanup pass.
2012/05/04 Initial version.


CONFIDENTIAL