Dear monks,
Lately I've been using WWW::Mechanize to automate a good deal of my daily tasks. Today I've ran into a bit of a quandry. I need to interact with a site that prompts for HTACCESS authentication. I scoured WWW::Mechanize's documentation and couldn't find anyway to have Mechanize authenticate and continue.
I'm willing to do it "another way," so I've come to the monastery for advice. I need to be able to go to this page, authenticate, click a submit button and scrape the output [of the final page]. I'm no Perl guru, so I'm looking for a fairly easy to moderate way to do this.
Any help is *GREATLY* appreciated! Thanks!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.