Http download file

Hi all,

Can any body tell what ruby scripts I should use to download file by using http protocol?
Already try to use Net::HTTP but doesn't work

regards
Eko

Hi,

···

On 26.1.2005, at 03:43, Eko Budi Setiyo wrote:

Hi all,

Can any body tell what ruby scripts I should use to download file by using http protocol?
Already try to use Net::HTTP but doesn't work

regards
Eko

One way is:

require 'open-uri'
data = open('http://img175.exs.cx/img175/8992/emotghost7ba.gif'\){|f| f.read}

Eko Budi Setiyo wrote:

Hi all,

Can any body tell what ruby scripts I should use to download file by using http protocol?
Already try to use Net::HTTP but doesn't work

   require 'open-uri'
   p open('http://www.ruby-lang.org/'\).read

Regards,

   Michael

Ilmari Heikkinen wrote:

Hi,

Hi all,

Can any body tell what ruby scripts I should use to download file by using http protocol?
Already try to use Net::HTTP but doesn't work

regards
Eko

One way is:

require 'open-uri'
data = open('http://img175.exs.cx/img175/8992/emotghost7ba.gif'\){|f| f.read}

Thanks you all

regards

···

On 26.1.2005, at 03:43, Eko Budi Setiyo wrote:

Ilmari Heikkinen wrote:

Hi,

Hi all,

Can any body tell what ruby scripts I should use to download file by using http protocol?
Already try to use Net::HTTP but doesn't work

regards
Eko

One way is:

require 'open-uri'
data = open('http://img175.exs.cx/img175/8992/emotghost7ba.gif'\){|f| f.read}

Any body know why this work wor xxx.gif but not for xxx.zip?

···

On 26.1.2005, at 03:43, Eko Budi Setiyo wrote: