Nowhere in any of the examples or tutorials does it show the possibility of passing userid and password to either LWP->new or LWP::UserAgent->new.
Of course not. LWP->new doesn't exists and LWP::UserAgent->new does not have such a parameter. Why would the docs for one class document the parameters a method in another class could have?
You know, it ain't like LWP was designed and implemented by some rank newbie.
What I did is no different than how WWW::Mechanize adds a stack_depth argument to the constructor and overrides method content, among others.
Feature addition through extension is a common practice, but not one I like. What if you had to extend two features?
Update: Added "no different" paragraph.
In reply to Re^9: LWP and Digest Authentication
by ikegami
in thread LWP and Digest Authentication
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |