cURL / Mailing Lists / curl-users / Single Mail

curl-users

Slow HTTP Post upload speed

From: :) <frankdochy_at_gmail.com>
Date: Tue, 28 Jul 2009 22:21:04 +0200

Hi,
this could be a question to libcurl library too but it doesn't depend ...

I use curl as well as libcurl to upload files to server via HTTP Post
and it is quite slow on fast connection (100mbit).
When I upload via browser, it is able to upload up to 10MB/s, usually
3-5MB/s per connection.

But when I use curl, it goes max. 1MB/s. (don't look for bugs in my
connection or on server side :)
The numbers are not important, the thing it is just many times slower.

So the question is: "is there any setting for broadband connection ?".
I mean something like buffer or such.
I have tried to find some things in mail archive, but nothing usefull.

eg.
http://curl.haxx.se/mail/lib-2003-03/0268.html
http://curl.haxx.se/mail/lib-2001-12/0002.html
http://curl.haxx.se/mail/lib-2002-12/0017.html
http://curl.haxx.se/mail/lib-2002-12/0079.html (speed test for
different buffers)

I use Windows (it doesn't depend which one), I tried to change the
CURLOPT_BUFFERSIZE/CURL_MAX_WRITE_SIZE (libcurl),
I tried to disable "Expect: 100". But nothing helped to reach that speed.

as a testing example you can use this, this server should be fast
enough for everyone
==============
curl.exe -F "filecontent=@test.rar"
http://rs505l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=1 -o x.htm
==============
- change "test.rar" to the file location to your file (eg. c:\test.rar)
- you can even change the server to rs170l3, rs227gc, rs360l3, rs771l3, rs449gc
- x.htm is output file

I know that it should "just send" the data as fast as it can, but it
does not. Curl and libcurl have the same "slow" result.

Any idea? I hope I attached all necessary informations.

Thanks
-------------------------------------------------------------------
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-28