more useful options | |
PerlMonks |
Re^2: Get non transformed XMLby Danikar (Novice) |
on Nov 22, 2007 at 08:57 UTC ( [id://652329]=note: print w/replies, xml ) | Need Help?? |
I just tried the code below and recieved the same thing =(
require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; $ua->agent('Mozilla/5.0'); my $response = $ua->get('http://www.wowarmory.com/'); if ($response->is_success) { print $response->content; # or whatever } else { die $response->status_line; }
In Section
Seekers of Perl Wisdom
|
|