webadept has asked for the wisdom of the Perl Monks concerning the following question:
I know one of you had to run into this at some time. I'm very versed in the LWP mod but this one is throwing me on two seperate sites. Here' s the demo link.
I've trieduse LWP::UserAgent; $ua = new LWP::UserAgent; $ua->agent('Mozilla/5.0'); my $cookies; $ua->cookie_jar($cookies); $r = new HTTP::Request('GET', $url); $res = $ua->request($r); $this = $res->{_content};
use LWP::Simple; my $this = get $url; die "Couldn't get $url" unless defined $content;
edited by ybiC: convert text URL to PM-style link, to eliminate lateral browser-window scrolling
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cfm links and lwp
by Aristotle (Chancellor) on Aug 26, 2003 at 01:20 UTC | |
by webadept (Pilgrim) on Aug 26, 2003 at 06:12 UTC | |
|
Re: cfm links and lwp
by Cody Pendant (Prior) on Aug 26, 2003 at 03:50 UTC | |
|
Re: cfm links and lwp
by Anonymous Monk on Aug 26, 2003 at 11:25 UTC |