Skip to content
Snippets Groups Projects
Commit 089668ec authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

correct the comment about size

parent cc0ce38a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment