marto9 has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::UserAgent; use HTTP::Request; $ua = new LWP::UserAgent; $ua->timeout(5); $ua->agent("Mozilla/6.0"); $url = "http://www.website.com"; $req = HTTP::Request->new('GET',$url); $res = $ua->request($req); $content = $res->content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get content from site with htaccess
by kyle (Abbot) on Aug 11, 2008 at 19:41 UTC | |
by Your Mother (Archbishop) on Aug 11, 2008 at 19:44 UTC | |
by Anonymous Monk on Aug 12, 2008 at 06:31 UTC | |
|
Re: Get content from site with htaccess
by Your Mother (Archbishop) on Aug 11, 2008 at 19:42 UTC | |
by Fletch (Bishop) on Aug 11, 2008 at 19:46 UTC | |
|
Re: Get content from site with htaccess
by ikegami (Patriarch) on Aug 11, 2008 at 19:37 UTC | |
|
Re: Get content from site with htaccess
by marto9 (Beadle) on Aug 11, 2008 at 19:43 UTC | |
by jettero (Monsignor) on Aug 11, 2008 at 20:04 UTC |