Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 14102
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Alternate way of using authentication
In Mechanize 1.12, the FAQ for "How_do_I_get_Mech_to_handle_authentication?" recommends, in addition to the credentials() method, passing extra arguments to the get() method. This works for get() requests, but it does not then use those credentials for futher submit_form() calls. The FAQ might want to also mention that if one wishes to use the credentials for all future requests (I think), they should use the LWP::UserAgent default_header() method instead of the extra arguments to get(): $mech->default_header( Authorization => 'Basic ' . encode_base64( USER . ':' . PASSWORD ) ); Much love.
Already added some docs like this. Thanks.