cURL / Mailing Lists / curl-users / Single Mail

curl-users

libcurl problem (ftp download).

From: Marc R. Wetzel <marc.wetzel_at_p3-solutions.de>
Date: Tue, 12 Aug 2003 18:03:45 +0200

Hi,

I've a problem using ftp with libcurl 7.10.2 (active and passive mode).

I use ftp over a "slow" gsm link where somewhere in the middle of the
network sits a transparent ftp-proxy.

As far as I can see by using tcpdump and etherreal, the following
happens (not always, but sometimes)

Control connection is established, user, password, directory is set.
Data-connection is opened.
(IMHO now the proxy receives the file with full speed > 2Mbit and after
about 3-4 seconds the file transfer is complete)
the proxy starts to transfer the first 3 to 10 packets, then I reiceive
a "Transfer complete" message on my control link.
(This seems to be correct, if we think of the proxy as a big long wire
:)
But after some seconds curl stops receiving the file and I get
error-code 18 ( => partial file received )

Where can I fix this problem? After digging and reading some RFCs, a
socket should be read complete until it's empty.
So my first assumptions that this proxy is not standard conform was
wrong.

What do you think?

Greetings
/Marc

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-12