We don't bite newbies here... much | |
PerlMonks |
How to visit a web page and print its response?by boeingdream (Novice) |
on Sep 14, 2011 at 09:05 UTC ( [id://925843]=perlquestion: print w/replies, xml ) | Need Help?? |
boeingdream has asked for the wisdom of the Perl Monks concerning the following question: Hi, I would like to visit a web page, get its http response, and print it. I tried following code, but it's always timeout.
Besides, I found that, in LWP::Simple, the function _trivial_http_get() cannot build socket connection to target website and return with undef every time.
$port is 80 by default. Thank you very much for your time.
Back to
Seekers of Perl Wisdom
|
|