From: Jeffrey 'jf' Lim Date: 2008-03-19T12:59:00+09:00 Subject: Re: WWW::Mechanize and basic_auth ------=_Part_20334_8825189.1205899148979 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, Mar 18, 2008 at 1:56 AM, Todd A. Jacobs < tjacobs-sndr-019fdb@codegnome.org> wrote: > 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? > the realm is presented by the server. This has nothing to do with the client in that sense. -jf -- In the meantime, here is your PSA: "It's so hard to write a graphics driver that open-sourcing it would not help." -- Andrew Fear, Software Product Manager, NVIDIA Corporation http://kerneltrap.org/node/7228 ------=_Part_20334_8825189.1205899148979--