correct the comment about size
This commit is contained in:
@@ -87,9 +87,7 @@ int test(char *URL)
|
|||||||
curl_easy_setopt(curl, CURLOPT_IOCTLDATA, &counter);
|
curl_easy_setopt(curl, CURLOPT_IOCTLDATA, &counter);
|
||||||
curl_easy_setopt(curl, CURLOPT_READFUNCTION, readcallback);
|
curl_easy_setopt(curl, CURLOPT_READFUNCTION, readcallback);
|
||||||
curl_easy_setopt(curl, CURLOPT_READDATA, &counter);
|
curl_easy_setopt(curl, CURLOPT_READDATA, &counter);
|
||||||
/* TODO: We should be able to do the POST fine without setting the size
|
/* We CANNOT do the POST fine without setting the size (or choose chunked)! */
|
||||||
and we should do a test to verify that but until we do that we set
|
|
||||||
the size of the request-body */
|
|
||||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(UPLOADTHIS));
|
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(UPLOADTHIS));
|
||||||
#endif
|
#endif
|
||||||
curl_easy_setopt(curl, CURLOPT_POST, 1);
|
curl_easy_setopt(curl, CURLOPT_POST, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user