summaryrefslogtreecommitdiff
path: root/docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html')
-rw-r--r--docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html b/docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html
index 1515d7de..7aa2456a 100644
--- a/docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html
+++ b/docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html
@@ -63,13 +63,13 @@ CURL *curl = curl_easy_init();
if(curl) {
  char local_buffer[1024]="data to send";
&nbsp; curl_easy_setopt(curl, CURLOPT_URL, "<a href="http://example.com">http://example.com</a>");
-
+&nbsp;
&nbsp; /* size of the data to copy from the buffer and send in the request */
&nbsp; curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 12L);
-
+&nbsp;
&nbsp; /* send data from the local stack */
&nbsp; curl_easy_setopt(curl, CURLOPT_COPYPOSTFIELDS, local_buffer);
-
+&nbsp;
&nbsp; curl_easy_perform(curl);
}
</pre>