in reply to Re^2: HTTP Post read response , Post againin 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 ); [download]
or default to a temporary in-memory cookie jar with
$ua->cookie_jar( {} ); [download]
See HTTP::Cookies and LWP::UserAgent for more details.