Get http page

Hello,

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

Sylvain COURTECUISSE
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
message.


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

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

–_0205-1618-25-PART-BREAK
Content-Type: text/plain; charset=us-ascii

Hello,

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

require ‘open-uri’

puts open(‘http://www.google.com/’).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