in reply to app not storing cookies (using LWP::UserAgent)
I don't see any place where you're telling $browser to use cookies at all!
To do so, assuming you can discard the cookies once $browser is gone, you can do this:
my $browser = LWP::UserAgent->new; $browser->cookie_jar({}); ...
If that's not the case, pass in an HTTP::Cookies object (or an object that subclasses that class) or provide appropriate options within the hashref instead of just using an empty hashref (LWP::UserAgent->cookie_jar() assumes that a hashref is options to create an HTTP::Cookies object for itself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: app not storing cookies (using LWP::UserAgent)
by Anonymous Monk on Apr 16, 2009 at 20:20 UTC | |
|
Re^2: app not storing cookies (using LWP::UserAgent)
by FireBird34 (Pilgrim) on Apr 17, 2009 at 16:17 UTC |