From: Vivek Nallur Date: 2003-06-04T23:18:31+09:00 Subject: Re: File retrieval problems Yes, you do. Just take all the data that you get and write it to the file. Here's a bit of code: require 'net/http' h = Net::HTTP.new('some.url.com', 80) url = '/path/to/file.zip' h.start{|http| File.open('c:\tmp\stuff.zip',"wb+"){|f| resp, data = http.get(url, nil){|gotit| f.print(gotit) } } } You'll have to put in some rescue clauses for catching exceptions, of course. regs Vivek Today, kingsley@icecode.org quoth: |Hi | |The main problem there is that I have no clue how to do step |3. | |that is downloading the zip file once I have the url. | |do I use the |HTTP module? | |thanks | |Kingsley | | | | | -- And on the Seventh day, God turned off his Macintosh