in reply to Re: Getting Cookies
in thread Getting Cookies

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

Replies are listed 'Best First'.
Re^3: Getting Cookies
by kennethk (Abbot) on Jul 05, 2013 at 16:51 UTC
    Firebug, the free Firefox plug-in, makes that easy.

    I'd also mention that, instead of storing cookies to disk, you can use Data::Dumper to look at your cookie jar contents.


    #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? :(

        Have you read WWW::Mechanize::Firefox and HTTP::Cookies::MozRepl?

        What makes you think that HTTP::Cookies would work together with WWW::Mechanize::Firefox and/or that WWW::Mechanize::Firefox would use a cookie jar outside of Firefox?

      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.