Hi Monk Awohld,
I'm working on a LWP Virtual agent too. And I get a problem with "refresh page" (Have a look on other post ;)).
For the cookies purpose. I think you have to complete your code.
cookie_jar => HTTP::Cookies->new(
file => 'mycook.txt',
autosave => 1,
ignore_discard => 1,
)
The "autosave" option is used by LWP to update the cookie session automatically. The txt file is a "Cookie box". When the HTTP::Cookies will be destroy, it 'll be save in this file (And restore cookie).
The"ignore_discard" parameter
save even cookies that are requested to be discarded (Because LWP respect the RFC 2965 -> that means LWP don't discard the cookies when the script ends.)
If you have use manually your site, maybe your browser have save the cookie sessions. You can import hime by using specific module like :
HTTP::Cookies::Netscape, HTTP::Cookies::Mozilla etc
Finnaly, maybe have a look on the HTTP::Status .
I hope that'll help you. I'm very interresting in your code, i'm begginner in the part of Perl lib.
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.