php抓取一个远程的xml文件以前一直是好的。今天突然不行了。下面是wget测试的结果
bjlfp 2014-06-05 09:00:39 wget -O /dev/null http://www.test.com.cn/test/test.xml
--2014-06-05 08:52:40-- http://www.test.com.cn/test/test.xml
正在解析主机 www.test.com.cn... 219.127.92.115
Connecting to www.test.com.cn|219.127.92.115|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1474715 (1.4M) [text/xml]
Saving to: `/dev/null'
63% [=========================================================> ] 940,240 296K/s in 3.1s
2014-06-05 08:52:44 (296 KB/s) - Read error at byte 940240/1474715 (Connection reset by peer). 重试中。
--2014-06-05 08:52:45-- (尝试次数: 2) http://www.test.com.cn/test/test.xml
Connecting to www.test.com.cn|2019.127.92.115|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 读取文件头错误 (Connection reset by peer)。