From: "Todd A. Jacobs" Date: 2008-03-16T06:05:04+09:00 Subject: WWW::Mechanize and basic_auth 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') I get the following error: WWW::Mechanize::ResponseCodeError: 401 => Net::HTTPUnauthorized Yes, I'm using the correct username and password. I can log in properly via Firefox, just not with mechanize. How do I get basic authentication to work in this instance? -- "Oh, look: rocks!" -- Doctor Who, "Destiny of the Daleks"