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

Is there anyway that I can load pages with LWP but have a cookie set in my "browser" so the pages would display a certain way. For instance if I wanted to write a script that would login to my Hotmail account every so often and tell me if I got new mail.

Replies are listed 'Best First'.
Re: LWP and cookies
by mitd (Curate) on Jan 18, 2000 at 02:18 UTC
    Yup, Read perldoc LWP::UserAgent and HTTP::Cookies. $ua->cookie_jar($cookies); will do the trick. Be nice to read an existing browser cookies file wouldn't it :) mitd