cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 1 Byte file file upload

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 3 Mar 2004 09:43:44 -0800

On Wed, Mar 03, 2004 at 03:43:31PM +0100, Daniel Stenberg wrote:
> 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"

The problem report was for uploading, not downloading, but the message doesn't
say what protocol. I wonder if the 480-486 bytes reported includes the
headers?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2004-03-03