RE: proxy authentication and Cookie
Sebastien Nadeau (Sebastien.Nadeau@bibl.ulaval.ca)
Wed, 10 Mar 1999 13:33:45 -0500
At 13:50 99/03/10 +0000, you wrote:
>If you are using LWP::UserAgent, you can just add:
>
>use HTTP::Cookies;
>...
>$ua->cookie_jar(HTTP::Cookies->new);
>
>Once the cookie jar is provided, LWP will use it to store any incoming
>cookies, and then add them to all appropriate outgoing requests.
Somehow, initializing your cookie object this way could help you much:
$ua->cookie_jar(HTTP::Cookies->new,ignore_discard=>1);
It will keep cookies, even if they are ordered to expire immediately. It's
kind of emulating Netscape's memory cache finally...
Sebastien Nadeau