in reply to http get with perl, help needed
oruse LWP::Simple; my $document = get("http://www.perlmonks.org");
Most of the time I use LWP::Simple, but sometimes I try to download something from a site for which LWP::Simple doesn't fetch the page. It's usually much easier to use `wget` than to debug why I'm not able to fetch the page with LWP.my $document = `wget -qO- http://www.perlmonks.org`;
If I need something more complex than a few simple downloads, I use WWW::Mechanize or LWP.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: http get with perl, help needed
by Anonymous Monk on Oct 17, 2008 at 13:51 UTC | |
by JavaFan (Canon) on Oct 17, 2008 at 14:11 UTC | |
by perlnewb123 (Sexton) on Oct 17, 2008 at 15:17 UTC |