[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

download files from web

Peter Meier

9/16/2006 10:34:00 AM

Hi,

I already knew that you can use the following code to download a file.

http=Net::HTTP.start(servername)
resp = http.get(fileName)

But if the files is large this will take some time.
Is there another package with a progress indication?

Thanks
Peter
1 Answer

hemant

9/16/2006 10:43:00 AM

0

On 9/16/06, Peter Meier <PeterMeier@antispam.de> wrote:
> Hi,
>
> I already knew that you can use the following code to download a file.
>
> http=Net::HTTP.start(servername)
> resp = http.get(fileName)
>
> But if the files is large this will take some time.
> Is there another package with a progress indication?
>
> Thanks
> Peter
>
>
you should consider using wget. Open a pipe and pass the location and
you should be ready to go.

--
There was only one Road; that it was like a great river: its springs
were at every doorstep, and every path was its tributary.