The stupid question is the question not asked | |
PerlMonks |
Re^3: POSTing information on a web pageby Corion (Patriarch) |
on Jun 16, 2008 at 17:39 UTC ( [id://692328]=note: print w/replies, xml ) | Need Help?? |
You're still thinking far too low-level about things. Read the WWW::Mechanize documentation. It does the cookie handling for you completely. You can even save the cookie jar to disk so you don't need to log in again the next time your script runs. If you insist on doing things yourself, consider using HTTP::Cookies instead of extracting the cookie information yourself. But then, LWP::UserAgent already does that for you.
In Section
Seekers of Perl Wisdom
|
|