From: Mike Dalessio Date: 2010-09-14T02:55:43+09:00 Subject: Re: WWW::Mechanize and basic_auth --00c09f8a501e048566049027ce5e Content-Type: text/plain; charset=ISO-8859-1 Hi, On Mon, Sep 13, 2010 at 1:22 PM, Yiling Cao wrote: > Hi, Thanks for the reply, appreciated it! > > I did have tried basic_auth() as i did read the whole thread. > > In fact in manual it says basic_auth() is an alias of auth() according > to http://mechanize.rubyforge.org/mechanize/Mechanize.html#M000229 > > Problem is mechanize or(net/http) is not sending the HTTP username and > password to the server, resulting server throws back 403 Forbidden > Error. > > Now is it the bug on all requests are this is occasionally happening? > Mechanize has unit tests around its basic_auth functionality: http://github.com/tenderlove/mechanize/blob/master/test/test_authenticate.rb#L9 If you've got a reproducible case that you can either put into executable code, or at least describe in detail, then please report the bug to the mechanize mailing list for feedback: http://rubyforge.org/mailman/listinfo/mechanize-users Thanks. --00c09f8a501e048566049027ce5e--