cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: Re: Now I am facing the error only when the filesize is mentioned with CURLOPT_INFILESIZE_LA

From: azad amm <ammazad_at_rediffmail.com>
Date: 20 Jan 2006 12:10:20 -0000

   The workaround has helped resolve the problem. Thanks for the suggestion. On Thu, 19 Jan 2006 Daniel Stenberg wrote : >On Thu, 19 Jan 2006, azad amm wrote: > >(No need to CC me, I'm subscribed...) > >>The new code is given below. This code successfully uploads the file only when line 59 is commented (i.e if the file size is not set with CURLOPT_INFILESIZE_LARGE). Whereas when line 59 is uncommented (i.e if the file size is set with CURLOPT_INFILESIZE_LARGE).There is this error shown in the verbose output and the file uploaded is of 0 bytes on the FTP-SSL server. > >>"Uploaded unaligned file size (3 out of 12884973312 bytes)" > >>(FTP-SSL server runs on Windows 2000, FTP client curl code runs on Solaris 2.9) > >I would say it indicates that 'curl_off_t' is different in your app compared to how libcurl views it. Given the sympthoms, it seems your app uses a 32 bit curl_off_t, while libcurl has a 64bit... Could that be right? > >A work-around for that problem might be to use the option without the _LARGE suffix. > >-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-20