From: "A. S. Bradbury" Date: 2006-06-13T04:46:05+09:00 Subject: Re: Get file over web On Monday 12 June 2006 20:22, Magnus Holm wrote: > Hi! I'm looking for a function to get the contents from a file on the > web into a string. Something like in PHP: $string = > file_get_contents("http://php.net"); Check out open-uri: http://ruby.outertrack.com/file/ruby-1.8.4%2Flib%2Fopen-uri.rb This is one possibility: uri = URI.parse("http://php.net") string = uri.read Alex