Hiya

Thank you so much - that worked perfectly !

Greatly appreciated

Kingsley

On 06-04-2003 03:18 pm, you wrote:

> 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
> 
> 
> 
>