Re: ftp upload problem
Date: Tue, 3 Jun 2008 09:30:21 +0200 (CEST)
On Tue, 3 Jun 2008, Nicky wrote:
> I run the example ftpupload.c http://curl.haxx.se/lxr/source/docs/examples/ftpupload.c in CentOS release 4.6 (Final)
> Kernel 2.6.9-67.EL on an i686,curl-devel-7.12.1-11.el4 but I get the failed result.The curl_easy_perform(curl) return 18.I find the error table that it means
> CURLE_PARTIAL_FILE (18) A file transfer was shorter or larger than
> expected. This happens when the server first reports an expected transfer
> size, and then delivers data that doesn't match the previously given size.
First, 7.12.1 is so old it's not even funny.
> But the file size equals the tranfer size.I don't know what's wrong.
> curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
Did you enable the LFS bits to get 64bit off_t when you compiled your app?
-- / daniel.haxx.seReceived on 2008-06-03