Get http page


Somebody have an example of : a get web page ?Thank’s

GFI Lille

Si vous n’etes pas le destinataire designe de ce message ou une personne
autorisee a l’utiliser, toute distribution, copie, publication ou usage
a quelques fins que ce soit des informations dans ce message sont
interdits. Merci d’informer immediatement l’expediteur par messagerie,
et, de detruire ce message.
This e-mail is confidential. If you are not the addressee or an
authorized recipient of this message, any distribution, copying,
publication or use of this information for any purpose is prohibited.
Please notify the sender immediately by e-mail and then delete this

try this :
Net::HTTP.start(“website address”) { |http|

On Feb 5, 2008, at 8:18 AM, Sylvain COURTECUISSE wrote:

Content-Type: text/plain; charset=us-ascii


Somebody have an example of : a get web page ?Thank’s

require ‘open-uri’

puts open(‘’).read

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs