See lwpcook, specifically the section on "Cookies." It is indeed possible to put together a request which "submits" a form, gets the cookie that is returned, and use it in later requests. This is an example of such, in fact, even using PerlMonks as an example.
Alternatively, you can find the file on your hard drive where IE stores the cookie, look at the name and value, and hard-code those in as a cookie.
On the gripping hand, you can visit the site in Netscape or compatible browser, and get a cookie. HTTP::Cookies knows how to read Netscape cookie files, and you can just tell it to read the cookie file that Netscape has produced with the cookie you want.
You'd almost get the feeling that There Is More Than One Way To Do It, wouldn't you? :)
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In reply to Re: Re: Re: Way to grab webpages WITH cookies enabled?
by Chmrr
in thread Way to grab webpages WITH cookies enabled?
by Kratimoyporroon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |