# Get http page

**URL:** <https://www.ruby-forum.com/t/get-http-page/128175>\
**Category:** Ruby\
**Created:** [February 5, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/get-http-page/128175 "2008-02-05T16:19:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvain\_COURTECUISS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@Sylvain\_COURTECUISS](https://www.ruby-forum.com/u/Sylvain_COURTECUISS)\
**Post date:** [February 5, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/get-http-page/128175/1 "2008-02-05T16:19:24Z")

</div>

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.

* * *

---

<div class="post-metadata">

**Author:** ![Sylvain\_COURTECUISS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@Sylvain\_COURTECUISS](https://www.ruby-forum.com/u/Sylvain_COURTECUISS)\
**Post date:** [February 5, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/get-http-page/128175/2 "2008-02-05T18:56:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sylvain\_COURTECUISS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@Sylvain\_COURTECUISS](https://www.ruby-forum.com/u/Sylvain_COURTECUISS)\
**Post date:** [February 5, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/get-http-page/128175/3 "2008-02-05T18:59:03Z")

</div>

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/](http://www.google.com/)’).read
