mirror of
https://github.com/curl/curl.git
synced 2026-06-29 12:56:06 +03:00
correct the comment about size
This commit is contained in:
parent
cc0ce38acc
commit
089668ec73
1 changed files with 1 additions and 3 deletions
|
|
@ -87,9 +87,7 @@ int test(char *URL)
|
|||
curl_easy_setopt(curl, CURLOPT_IOCTLDATA, &counter);
|
||||
curl_easy_setopt(curl, CURLOPT_READFUNCTION, readcallback);
|
||||
curl_easy_setopt(curl, CURLOPT_READDATA, &counter);
|
||||
/* TODO: We should be able to do the POST fine without setting the size
|
||||
and we should do a test to verify that but until we do that we set
|
||||
the size of the request-body */
|
||||
/* We CANNOT do the POST fine without setting the size (or choose chunked)! */
|
||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(UPLOADTHIS));
|
||||
#endif
|
||||
curl_easy_setopt(curl, CURLOPT_POST, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue