g***l 发帖数: 2753 | 1 hi, there,
I am learning to use Perl to grab some useful information from
internet. For example to get specified web page.
I tested several web sites and the code works well. But when I tried
on www.officedepot.com, the code does not work any more. the returned
error message is always "Error1: when get http://www.officedepot.com:
500 Can't connect to www.officedepot.com:80 (connect: Unknown error)"
I have no idea what is going wrong. please help me on this
////
use LWP 5.64;
use LWP::UserAgent; | c**t 发帖数: 2744 | 2 I don't have problem to run the code. My result: connected with server.
【在 g***l 的大作中提到】 : hi, there, : I am learning to use Perl to grab some useful information from : internet. For example to get specified web page. : I tested several web sites and the code works well. But when I tried : on www.officedepot.com, the code does not work any more. the returned : error message is always "Error1: when get http://www.officedepot.com: : 500 Can't connect to www.officedepot.com:80 (connect: Unknown error)" : I have no idea what is going wrong. please help me on this : //// : use LWP 5.64;
|
|