# Download files from web

**URL:** <https://www.ruby-forum.com/t/download-files-from-web/68896>\
**Category:** Ruby\
**Created:** [September 16, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/download-files-from-web/68896 "2006-09-16T12:36:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [September 16, 2006, 12:36pm UTC](https://www.ruby-forum.com/t/download-files-from-web/68896/1 "2006-09-16T12:36:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [September 16, 2006, 12:42pm UTC](https://www.ruby-forum.com/t/download-files-from-web/68896/2 "2006-09-16T12:42:16Z")

</div>

On 9/16/06, Peter M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thanks  
> Peter

you should consider using wget. Open a pipe and pass the location and  
you should be ready to go.
