Error when using PHP to crawl web content
淡淡烟草味
淡淡烟草味 2017-05-16 13:16:44
0
6
610

Code:

$content = file_get_contents("http://www.zoology.csdb.cn/csdb/getInfo.asp?_=1491810154308&id=B684780B-92C7-40D8-8CE1-16064082031C");

Error report:
( ! ) Warning: file_get_contents(http://www.zoology.csdb.cn/cs... failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

But the website:
http://www.zoology.csdb.cn/cs...
There is no problem in accessing it with a browser.

淡淡烟草味
淡淡烟草味

reply all(6)
Peter_Zhu

When I access the website, I get an error, Internal Server Error
Do I need to log in? Then bring cookies and use curl

大家讲道理

The browser access for this link is still 500. The website is OK. You need to confirm whether the link is correct or whether the website requires logging in to obtain it

phpcn_u1582

Dear, I tested it myself, there is also a problem when accessing it through a browser

Ty80

Browser access error: Internal Server Error

伊谢尔伦

Browser opening is 500

仅有的幸福

Browser opened: Internal Server Error, time: 2017-4-11 9:21

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!