diff options
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> |