by kennethk (Abbot)
 on Jul 05, 2013 at 16:02 UTC ( #1042738=note: print w/replies, xml ) Need Help??

my \$cookie_jar = HTTP::Cookies->new(file => 'C:\path\to\cookies.dat',
autosave=> 1,
[download]

#11929 First ask yourself How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
by PerlSufi (Friar) on Jul 05, 2013 at 16:45 UTC
Thanks, kennethk. That worked for me. :)
The cookie is different from what my browser gives me so I'm working on how to get that now
Firebug, the free Firefox plug-in, makes that easy.

#11929 First ask yourself How would I do this without a computer?' Then have the computer do it the same way.

Ty, kennethk. I have been using HTTP live headers. I forgot firebug did that. I actually want my script to get them automatically. I will be using WWW::Mechanize::Firefox to do crawl the site. I need the JSESSIONID to be a part of an HTTP get request.
Oh. It turns out that WWW::Mechanize::Firefox doesn't save cookies to the jar? :(
Thanks again for recommending the Data::Dumper to get those cookies. I am another step closer to automating the page. Now I think I need to use a regex to match for the JSESSIONID and concatenate it into my get request.

Create A New User
Node Status?
node history
Node Type: note [id://1042738]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-04-26 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
I'm a fool:

Results (488 votes). Check out past polls.