summaryrefslogtreecommitdiff
path: root/docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2015-06-17 09:38:25 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2015-06-17 09:38:25 +0200
commitdbada9f3efae6d9d47b24d0fc06b31d5c48e59a9 (patch)
tree453623e63c0fe6672f0222a33b702b21991c3d85 /docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html
parentbff9831a91669600de53ca4ed6022cb212a40b8a (diff)
Imported Upstream version 7.43.0
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) {
&nbsp; 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>