use LWP::UserAgent; use HTTP::Cookies; my $cjar = HTTP::Cookies->new(); my $ua = LWP::UserAgent->new( keep_alive => '1', ); $ua->cookie_jar($cjar); my $req = HTTP::Request->new( GET => 'http://derstandard.at/' ); my $response = $ua->request($req); print $cjar->as_string;
In reply to Re^3: Missing cookies with LWP::UserAgent and HTTP::Cookies
by borisz
in thread Missing cookies with LWP::UserAgent and HTTP::Cookies
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |