curl-library
CURLOPT_UPLOAD: CURLOPT_INFILESIZE is not allocating requested filesize
Date: Fri, 16 Apr 2004 14:55:26 -0600
I have libcurl 7.10.4.
I am trying to use curl_upload. It it's not allocating requested file size. Here is the setopt sequence
curl_easy_setopt(curl, CURLOPT_URL, "foo/foobar.asp");
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, do_body);
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, do_header);
curl_easy_setopt(curl, CURLOPT_HEADER, 1);
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_easy_setopt(curl, CURLOPT_INFILESIZE, FileSize);
curl_easy_setopt(curl, CURLOPT_READFUNCTION, do_read);
curl_easy_setopt(curl, CURLOPT_INFILE, pFile);
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
res = curl_easy_perform(curl);
In my readfuncation callback is printing the progress in reading a file in..
ifile size=412257
getting data
size sent=2048 avaliable=2048 * 1 sofar=2048
getting data
size sent=51200 avaliable=51200 * 1 sofar=53248
getting data
size sent=51200 avaliable=51200 * 1 sofar=104448
getting data
size sent=51200 avaliable=51200 * 1 sofar=155648
Something went worng with curl performing= 23
The curl is only allocating ~16Kbytes.
What I'm I missing.
Enrique Herrera, Programmer
M2M Data Corporation
9785 Maroon Circle, Suite 210
Englewood, CO 80112
Off. 303-768-0064 Ext. 419; fax. 303-799-8828
The information transmitted by Enrique Herrera herewith is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Received on 2004-04-16