diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2015-06-17 09:38:25 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2015-06-17 09:38:25 +0200 |
commit | dbada9f3efae6d9d47b24d0fc06b31d5c48e59a9 (patch) | |
tree | 453623e63c0fe6672f0222a33b702b21991c3d85 /docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html | |
parent | bff9831a91669600de53ca4ed6022cb212a40b8a (diff) |
Imported Upstream version 7.43.0
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_COPYPOSTFIELDS.html | 6 |
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"; curl_easy_setopt(curl, CURLOPT_URL, "<a href="http://example.com">http://example.com</a>"); - + /* size of the data to copy from the buffer and send in the request */ curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 12L); - + /* send data from the local stack */ curl_easy_setopt(curl, CURLOPT_COPYPOSTFIELDS, local_buffer); - + curl_easy_perform(curl); } </pre> |