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

Hi
I wrote a program that retreives data from a website and folows links in page and retreives that aswell. it worked great untill they started using cookies.
Is there any way i can load that cookie and use it so i can still retreive my pages using the LWP::Simple get() command ?
If anyone can point me in the right direction i would appreciate it.

(just to make sure you understand i dont want to store cookies but i get a cookie wich i want to use so i can retreive other pages)

Thanks in advance (and perlmonks still great site)

Replies are listed 'Best First'.
Re: cookies using lwp simple get command
by tcf22 (Priest) on Sep 03, 2003 at 13:35 UTC

      Using the HTTP::Cookies::Netscape subclass will allow you to store / retrieve your cookies in a Netscape compatible file. This can be a mechanism for using existing cookies (from your Netscape browser) or creating a cookie file that can be read by other programs.

      Inman

    Re: cookies using lwp simple get command
    by arthas (Hermit) on Sep 03, 2003 at 12:27 UTC

      Hi!

      AFAIK LWP::Simple doesn't deal with cookie, so you'll need to use LWP directly. Don't worry even if it's without the Simple suffix, it ain't difficult. ;-).

      Michele.