wmfs has asked for the wisdom of the Perl Monks concerning the following question:
Extract from the file on the internetuse LWP::UserAgent; $ua = LWP::UserAgent->new; $url = "https://<SITE>/<FILE>.html"; $req = HTTP::Request->new(GET => $); $ua->agent('Mozilla/5.0'); $res = $ua->request($req); if ($res->is_success) { $result = $res->content; } else { print $htmlres->status_line; print $htmlres->decoded_content; }
It is the coryphées should fear him,Data retrieved
It is the coryph�es should fear himThank you for your help, Bill Seabrook UK
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::UserAgent; unable to copy extended ASCII
by Corion (Patriarch) on Jun 06, 2022 at 09:49 UTC | |
by haj (Vicar) on Jun 06, 2022 at 11:31 UTC | |
by wmfs (Acolyte) on Jun 06, 2022 at 16:08 UTC | |
|
Re: LWP::UserAgent; unable to copy extended ASCII
by Discipulus (Canon) on Jun 06, 2022 at 09:49 UTC | |
|
Re: LWP::UserAgent; unable to copy extended ASCII
by wmfs (Acolyte) on Jun 06, 2022 at 09:48 UTC | |
by AnomalousMonk (Archbishop) on Jun 06, 2022 at 14:16 UTC |