xorl has asked for the wisdom of the Perl Monks concerning the following question:

My work's VPN requires me to first login to a website, get a specific cookie and then pass that to the vpn software (This Juniper VPN if anyone is wondering and I'm using Linux).

I don't want to have to go searching through Firefox's preferences to find by hand find the cookie I need. I thought I'd use perl to read cookies.txt, but of course there doesn't seem to be a cookies.txt any more.

I then played around with sqlite3 (getting DBD::SQLite working was also a pain). It seems the cookie isn't actually saved to the file but is only in some active memory or something. I can find it in Firefox in the list of all cookies. There are also some cookies specific to our domain that are in both the file and while the browser is open. So something does get saved just not the specific cookie I need.

Any idea how I might go about retrieving this cookie? I'm willing to switch browsers if that might help. There's also something on github that tries to screen scrape the vpn website and capture the cookie from there, but it doesn't at all work with the site I have to log into. If I'm going about this (the vpn login) totally wrong let me know ideas on that too.

Thanks in advance.