codemonkey has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::UserAgent; use HTTP::Cookies; use HTTP::Request::Common qw(POST); my $ua = new LWP::UserAgent; my $cookie_jar = new HTTP::Cookies; $cookie_jar->add_cookie_header($ENV{HTTP_COOKIE}); #This line is troub +lesome my $req = POST 'http://foo.com/cgi-bin/log_cookie.cgi', [ data => 'somedata', errors => 'probably' ]; print $ua->request($req)->as_string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP and slow learners
by Fastolfe (Vicar) on Jan 30, 2001 at 00:09 UTC | |
|
(jcwren) Re: LWP and slow learners
by jcwren (Prior) on Jan 30, 2001 at 00:41 UTC |