Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Question about the credentials method in WWW:Mechanizeby paulehr (Sexton) |
on Nov 16, 2006 at 03:42 UTC ( [id://584358]=perlquestion: print w/replies, xml ) | Need Help?? |
paulehr has asked for the wisdom of the Perl Monks concerning the following question: I am doing some scraping using WWW::Mechanize and ran into an issue where the credentials method was not working for me. While searching for a solution I ran across this node where the original poster was having the same issue I was. Only difference was I had used the credentials method before requesting the page. One of the monks that replied to the thread had pointed out the use of MIME::Base64 and encoding the user name and password. I had tried the example code and it worked for me. I was able to access the restricted page I was trying to scrape (my Linksys router's web interface). My question is, how come just using the credentials method not didn't work when trying to access the page? Why did the solution that involved encoding the username/password with MIME::Base64 work? I am really puzzled and wish to understand why one method worked and not the other. Thanks for the help!
Back to
Seekers of Perl Wisdom
|
|