From: "Todd A. Jacobs" Date: 2008-03-18T02:56:06+09:00 Subject: Re: WWW::Mechanize and basic_auth On Sun, Mar 16, 2008 at 06:05:04AM +0900, Todd A. Jacobs wrote: > I'm trying to get basic authentication to work with Ruby 1.8 and > WWW::Mechanize 0.7, and am having no luck: > > require 'mechanize' > agent=WWW::Mechanize.new > agent.auth('foo', 'bar') > agent.get('http://192.168.20.10') It occurs to me that there is no documented interface for selecting a realm. Is this automagical, or am I supposed to set the realm somehow? If so, how do I do that, and where is it documented? -- "Oh, look: rocks!" -- Doctor Who, "Destiny of the Daleks"