cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 1 Byte file file upload

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 3 Mar 2004 15:43:31 +0100 (CET)

On Tue, 2 Mar 2004, Jesse Noller wrote:

> I am using libcurl with pyCURL to upload a series of files - the files
> are exactly 1 byte in size, and there are ~10,000 of them. Using libcurl, I
> measure the "amount uploaded" and the bytes/sec - instead of getting a
> response on "amount uploaded" of 1 (logically, 1 byte) I am getting numbers
> in the 480-486 range, and the bytes/sec match with that.

It sounds like a pyCURL bug or something. I tried the following command line:

$ curl -w "%{size_download} bytes %{speed_download} bytes/sec\n" \
 http://daniel.haxx.se/1 -o /dev/null -s

(That URL contains a single byte file)

It causes the following output on both curl 7.10.7 and with my most recent CVS
version:

"1 bytes 1.000 bytes/sec"

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-03-03