81
81
<p class="level0"><a name="CURLFORMFILENAME"></a><span class="nroffip">CURLFORM_FILENAME</span>
82
82
<p class="level1">followed by a pointer to a string to a name, will make libcurl use the given name in the file upload part, instead of the actual file name given to <a class="emphasis" href="#CURLFORMFILE">CURLFORM_FILE</a>.
85
85
<p class="level1">followed by a string, tells libcurl that a buffer is to be used to upload data instead of using a file. The given string is used as the value of the file name field in the content header.
87
87
<p class="level0"><a name="CURLFORMBUFFERPTR"></a><span class="nroffip">CURLFORM_BUFFERPTR</span>
88
<p class="level1">followed by a pointer to a data area, tells libcurl the address of the buffer containing data to upload (as indicated with <span Class="emphasis">CURLFORM_BUFFER</span>). The buffer containing this data must not be freed until after <a class="emphasis" href="./curl_easy_cleanup.html">curl_easy_cleanup(3)</a> is called. You must also use <a class="emphasis" href="#CURLFORMBUFFERLENGTH">CURLFORM_BUFFERLENGTH</a> to set the length of the given buffer area.
88
<p class="level1">followed by a pointer to a data area, tells libcurl the address of the buffer containing data to upload (as indicated with <a class="emphasis" href="#CURLFORMBUFFER">CURLFORM_BUFFER</a>). The buffer containing this data must not be freed until after <a class="emphasis" href="./curl_easy_cleanup.html">curl_easy_cleanup(3)</a> is called. You must also use <a class="emphasis" href="#CURLFORMBUFFERLENGTH">CURLFORM_BUFFERLENGTH</a> to set the length of the given buffer area.
90
90
<p class="level0"><a name="CURLFORMBUFFERLENGTH"></a><span class="nroffip">CURLFORM_BUFFERLENGTH</span>
91
91
<p class="level1">followed by a long with the size of the <a class="emphasis" href="#CURLFORMBUFFERPTR">CURLFORM_BUFFERPTR</a> data area, tells libcurl the length of the buffer to upload.