cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

RE: Downloading a file

From: Paul Monteiro <sorcer1_at_hotmail.com>
Date: Fri, 27 Nov 2009 10:50:55 +0000

Do you think it is possible to check the size after download ?
If Yes, How ?
I try to find any command for this but unsuccessfull !

> To: curl-library_at_cool.haxx.se
> Subject: Re: Downloading a file
> From: marco.maggi-ipsu_at_poste.it
> Date: Fri, 27 Nov 2009 11:29:10 +0100
>
> "Paul Monteiro" wrote:
> > Case A
> > 2009-11-27 08:00.00 - Copying file AAAA (1.5GB) from server 1 to server 2
> > (the copy will finish at 08:05:00)
> > 2009-11-27 08:01.00 - Trying to download AAAA with curl (0.3GB) from
> > server 2
> > 2009-11-27 08:02.00 - Download complete
>
> So the problem is that cURL downloads a file to which data
> is still being appended, and the overall protocol (OS +
> server + client) does not allow to distinguish between the
> events "read all data available so far" and "read all data
> in the file".
>
> IMHO you should change the triggering even from "the file
> is present on the server" to "the file has been fully
> uploaded to the server". For example, after AAAA has been
> fully uploaded, create a further file AAAA.done (empty or
> symlink or whatever does not waste space) and use the event
> "AAAA.done is present on the server" as trigger to start
> downloading AAAA.
>
> HTH
> --
> Marco Maggi
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
                                               
_________________________________________________________________
Tchattez en direct en en vidéo avec vos amis !
http://www.windowslive.fr/messenger/

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-27

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET