in reply to Is it possible to use other browser's cookies ?

It should be, so long as you know where the file Firefox stores them in is. Take a look at LWP::UserAgent's cookie_jar. (It's been quite a while since I last needed to do this, but I'm pretty sure that was how I did it.)
  • Comment on Re: Is it possible to use other browser's cookies ?

Replies are listed 'Best First'.
Re^2: Is it possible to use other browser's cookies ?
by Alien (Monk) on Jul 14, 2007 at 18:15 UTC
    I found the cookie file , but when I run the script , HTTP::Cookies complains about the file :

    /root/.mozilla/firefox/y71ji1db.default/cookies.txt does not seem to contain cookies at /usr/lib/perl5/site_perl/5.8.8/HTTP/Cookies.pm line 426, <FILE> line 1.
      This is a symptom of that your perl process cannot read the cookies files, judging from the path, probably because of lacking permission.

      Security advice: Don't browse the web as root, ffs! Use a normal user account.


        The perl process ran as root , so I'm guessing permissions weren't a problem ... I'm not usually running scripts as root , but I was writing this script while on a Live CD .
        Its more likely that the Firefox cookies are in a format HTTP::Cookies can't parse

        just another cpan module author