cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cURL downloading speed

From: Gonzalo <alvenn_db_at_yahoo.es>
Date: Tue, 19 Jul 2005 12:40:59 +0200

Hi Dan.

Thanks for your answer. I have downloaded curl 7.14.0 (which I see in
the cURL page that it is the latest version), and the speed is the same.
I have used what you told me about the VERBOSE option to see the
commands and reduce them to the minimum, but the result is exactly the
same: 30 Kbps using command-line FTP and 3 Kbps using cURL.

I have noticed a curious thing. Instead of using the FTP server that I
am using, I used, just for a try, to download a file from an FTP server
of my intranet and the speed was astonishing: near 10 Mbps, but this
server is not the one that I am interested to use.

I have tried several libcurl options, but the results were exactly the same.

I don't know what to do. Can anyone help me?

Thanks in advance

Dan Fandrich wrote:

>On Mon, Jul 18, 2005 at 10:36:23AM +0200, Gonzalo wrote:
>
>
>>Sorry to bother you again with this problem. I have changed my test
>>proofs to see if your suggestions were right, and the majority of the
>>time was lost in the command transmission (connection, authentication,
>>directory change...) instead of file transfer. I prepared a test were I
>>have to download a 30 Mb file, and the results were exactly the same.
>>Instead of the 30 Kbps that I can reach using the command-line FTP
>>client, what I have are 3 Kbps using my FTP client built using cURL. I
>>have tried to debug the library, but I am not an expert and I have no
>>idea where the file transfer window is negotiated. I have tried several
>>cURL options of the manual, but the results were exactly the same. Can
>>you (or any other) give me any advice?
>>
>>
>
>First, make sure you're using the latest curl version because there were
>some improvements in ftp in recent versions. Next, use the -v option to look
>at the commands sent by curl to the server. You may find that some aren't
>needed (e.g. EPSV if the server doesn't support it). Use the appropriate
>curl option to disable those commands (e.g. CURLOPT_FTP_USE_EPSV for EPSV)
>to reduce the time on that option. There may be some commands that you'll
>need to hack the curl source to eliminate (the initial PWD and TYPE probably
>fit into that category). Be sure you know what you're doing, though, because
>they are sent for a reason.
>
>Once you trim those commands to a minimum, you should find that curl's
>performance at least matches that of the command-line client.
>
>
>
>>>>Dan
>>>>
>>>>

                
______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
Received on 2005-07-19