cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl_easy_perform

From: Campagna, Hugo <hcampagna_at_oerlikon.ca>
Date: Wed, 25 Jan 2006 09:16:19 -0500

Hi try using CURLOPT_INFILESIZE instead of CURLOPT_INFILESIZE_LARGE.... I had the same problem

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se [mailto:curl-users-bounces_at_cool.haxx.se]On Behalf Of namitha.gowda_at_wipro.com
Sent: Wednesday, January 25, 2006 5:19 AM
To: curl-users_at_cool.haxx.se
Subject: curl_easy_perform



Hi,

We are using curl library version 7.13.1 on Debian 3.1 kernel version 2.6.8-2-686
The function curl_easy_perform is returning an error code 18 (CURLE_PARTIAL_FILE), when we try to upload a 28.1 MB file.
But the upload seems to be sucessfull.
Why it is not returning CURLE_OK?

we also use the following functions
ifstream infile;

curl_easy_setopt(curl,CURLOPT_URL, ftpUrl.c_str());

curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,sizeCurl);

curl_easy_setopt(curl, CURLOPT_READDATA, &inFile);

curl_easy_setopt(curl, CURLOPT_USERPWD, credentials.c_str());


curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, ftpTimeout);
curl_easy_setopt(curl, CURLOPT_VERBOSE, verbose);

curl_easy_setopt(curl, CURLOPT_NOPROGRESS, noprogress);

Please let us know if we are going wrong somewhere or if this is a known issue in curl 7.13.1 on Debian 3.1 Kernel version 2.6.8-2-686.

if this is a known issue, please let us know, how we can resolve this issue.

Thanks





The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
        

Received on 2006-01-25