On 7/19/06, Just Another Victim of the Ambient Morality
<ihatespam / rogers.com> wrote:
>
> "Eric Hodel" <drbrain / segment7.net> wrote in message
> news:A270FB20-30C3-472C-8BA9-922490FFD19B / segment7.net...
> > On Jul 19, 2006, at 2:55 PM, Just Another Victim of the Ambient  Morality
> > wrote:
> >
> > No, it doesn't fail, it gives you a redirect.  Follow it.
>
>     You know, it would be easier to follow the redirect if I knew that it
> was giving me a redirect and if I knew how to follow one were I to be given
> it...
>
>
> >> _This_ behaviour doesn't match my browser.  Is there any way I can
> >> get redirected or find out where it wants to redirect me and go there,
> >> myself?
> >
> > Follow the redirect.  Look at open-uri for example code.
>
>     You know, this is where Ruby's lack of documentation is really biting me
> in the ass.  I found some rudimentary docs on how to use it but, you know
> what?  For the life of me, no amount of googling can reveal exactly where I
> can get the open-uri module...  Seriously, where do I download this thing
> from and how could I have known that?
>     Thank you, from a very frustrated would-be Ruby programmer...

open-uri is included in the Ruby standard library.

The process for finding its documentation isn't that difficult.

Go to http://www.ruby-doc.org.  Click on the 1.8.4 standard library
link.  Click on the open-uri library link that's in the left frame.
Tada!