Subject: | Error in SCRIPTing AUTH commands |
Using:
Show quoted text
>version
WWW::Mechanize::Shell: 0.36
WWW::Mechanize::FormFiller: 0.05
WWW::Mechanize: 1.08
Term::Shell: 0.01
HTML::Parser: 3.38
HTML::TableExtract: 1.08
HTML::Parser: 3.38
HTML::Display: 0.36
Pod::Constants: <undef>
File::Modified: 0.07
If you do an AUTH command, ie:
Show quoted text> auth domain:80 realm user password
When you use the SCRIPT command to create the code for it, it generates a line like:
$self->agent->credentials('domain:80','realm','user','password')
The line generated should be:
$agent->credentials('domain:80','realm','user','password');
Note the removal of "$self->" at the start, adding "$" before "agent" and the trailing semicolon to end the line.
Great module!
Thanks!
- Brian Gallagher