cURL / Mailing Lists / curl-library / Single Mail

curl-library

ftp upload example question

From: Dima Yashkir <dima.yashkir_at_gmail.com>
Date: Thu, 6 Sep 2007 10:01:57 -0400

Hello,

I been playing with this example:
http://curl.haxx.se/lxr/source/docs/examples/ftpupload.c and inserted a
curl_easy_strerror(res) after the perform.

Verbose output seems to show that the file was transferred only partially

* About to connect() to development03 port 21
* Trying 10.10.7.143... * connected
* Connected to development03 (10.10.7.143) port 21
< 220-FileZilla Server version 0.9.23 beta
< 220-written by Tim Kosse (Tim.Kosse_at_gmx.de)
< 220 Please visit http://sourceforge.net/projects/filezilla/
> USER anonymous
< 331 Password required for anonymous
> PASS ipcc
< 230 Logged on
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
* protocol connect phase DONE
* DO phase starts
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||1799|)
* Trying 10.10.7.143... * connected
* Connecting to 10.10.7.143 (10.10.7.143) port 1799
* DO phase is comlete
* DO-MORE phase starts
> TYPE I
< 200 Type set to I
> STOR 1.m
< 150 Connection accepted
* DO-MORE phase ends
* Uploaded unaligned file size (15173 out of 577759279830809413 bytes)
* Closing connection #0
^^^^^^^^^^^result is: Transferred a partial file

The file at the destination seems fine, but I am wondering why is perform
failing with this error? Anyone got any suggestions?

thank you

Dmytro
Received on 2007-09-06