# URI:HTTP and read()

**URL:** <https://rubytalk.org/t/uri-http-and-read/60679>\
**Category:** ruby-talk\
**Created:** [1 November 2010 03:25 UTC](https://rubytalk.org/t/uri-http-and-read/60679 "2010-11-01T03:25:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Cwik](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@Jason\_Cwik](https://rubytalk.org/u/Jason_Cwik)\
**Post date:** [1 November 2010 03:25 UTC](https://rubytalk.org/t/uri-http-and-read/60679/1 "2010-11-01T03:25:45Z")

</div>

Hi All,

I'm new to ruby and running 1.8.7 on Mac OSX 10.6. From the Ruby docs  
([http://rdoc.info/docs/ruby-stdlib/1.8.7/URI/HTTP](http://rdoc.info/docs/ruby-stdlib/1.8.7/URI/HTTP)) , I gather that  
URI::HTTP should mixin OpenURI::OpenRead, yet when I call read on my URI  
object, I get the error:

undefined method `read' for #\<URI::HTTP:0x10171e1f0\>

Is there something I'm missing?

MacBookPro:~ jason$ ruby --version  
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
