cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl FTP download contains less data than upload

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 21 Jul 2009 00:48:51 +0200 (CEST)

On Mon, 20 Jul 2009, Vicky Chan wrote:

> I performed FTP uploads and downloads and it seems as if uploads take a lot
> longer than downloads on the same 20MB file.
>
> I tried capturing the network data using WireShark and discovered that for
> upload, curl uploads the whole 20MB file. But for download, curl only
> downloads about 3.6MB.

You mean repeatedly, on all files you get, independently of FTP server or
network? That's very curious. What version on what OS would this be seen on?

> Does anyone have an idea why?

My first gut feeling is a funny server or similar. Simple FTP downloading has
been a stable feature of curl for quite some time.

> Does curl use any cache or some sort?

Not that sort at least.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-07-21