[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Get http page

Sylvain COURTECUISSE

2/5/2008 3:19:00 PM

[Note: parts of this message were removed to make it a legal post.]

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



2 Answers

Houdev Houdev

2/5/2008 5:57:00 PM

0

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

--
Posted via http://www.ruby-....

Tim Pease

2/5/2008 5:57:00 PM

0

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...).read