casimo has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::UserAgent; use HTTP::Cookies; $letter1 = "d"; + $letter2 = "r"; $letter3 = "f"; $ua = LWP::UserAgent->new; $ua->cookie_jar(HTTP::Cookies->new(file => "lwpcookies.txt", autosave +=> 1, ignore_discard => 1)); + $req = HTTP::Request->new( GET => "http://www.$letter1$letter2$letter3 +.com" ); print $req->as_string, "\n"; $response = $ua->request($req); print $response->as_string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Site won't give cookie with LWP::UserAgent - HTTP::Cookies
by ikegami (Patriarch) on Jan 23, 2011 at 03:49 UTC | |
by casimo (Sexton) on Jan 23, 2011 at 16:28 UTC | |
|
Re: Site won't give cookie with LWP::UserAgent - HTTP::Cookies
by PeterPeiGuo (Hermit) on Jan 23, 2011 at 02:21 UTC | |
|
Re: Site won't give cookie with LWP::UserAgent - HTTP::Cookies
by Anonymous Monk on Jan 23, 2011 at 02:22 UTC |