in reply to Re^3: HTTP Post read response , Post again
in thread HTTP Post read response , Post again
It looks like you can either create an HTTP::Cookies object and pass it to the user agent object:
require HTTP::Cookies; my $cookie_jar = HTTP::Cookies->new( file => 'cookies.txt, ); $ua->cookie_jar( $cookie_jar );
or default to a temporary in-memory cookie jar with
$ua->cookie_jar( {} );
See HTTP::Cookies and LWP::UserAgent for more details.
|
|---|