You can use the UserAgent module to feed your existing cookies out to the correct websites (as far as I know). So if the cookie is persistent, just might try the CookieJar (i think) method to point to where the cookie resides.
If that doesn't work or the cookie expires after each session, then your Perl script needs to login. You just need to look at what their login form is sending in for authentication and mimic that. The UserAgent can handle both POST and GET requests.
In this case, I think the perldocs for the module are pretty good (even I understood them) and you should give them a real good eyeballing, since they will probably answer your questions.
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.