From: Aaron Patterson Date: 2008-03-18T06:40:24+09:00 Subject: Re: WWW::Mechanize and basic_auth On Tue, Mar 18, 2008 at 02:56:06AM +0900, Todd A. Jacobs 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? For basic authentication, mechanize just delegates to net/http. Can you add a logger to mechanize and send me your logs? agent.log = Logger.new(STDOUT) Is this against Apache? If so, could you send your config, and I'll try to reproduce the error. -- Aaron Patterson http://tenderlovemaking.com/