Keep It Simple, Stupid | |
PerlMonks |
Using LWP::UserAgent to Get Web Pagesby jayanth (Initiate) |
on Jun 14, 2007 at 15:04 UTC ( [id://621260]=perlquestion: print w/replies, xml ) | Need Help?? |
jayanth has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm using the LWP::UserAgent module to access web pages. Given below is the code which is supposed to return an HTTP::Response object with the contents of the requested page. When I run this code, I get the message '500 Can't connect to www.google.com:80 (Bad hostname 'www.google.com')'. I'm running the code on a Fedora Core 6 machine. I access the Internet directly, without any proxy server. I'm not using any firewall either. Please help. Thanks, Jayanth
Back to
Seekers of Perl Wisdom
|
|