简体   繁体   English

GAE php“网址提取错误”

[英]GAE php “urlfetch error”

i want to get a webpage content via my gae php application. 我想通过我的gae php应用程序获取网页内容。 but the code doesn't work. 但是代码不起作用。

my code is: 我的代码是:

echo file_get_contents("http://www.navyfield.com", false);

and i tried my code on php-minishell, http://php-minishell.appspot.com/ it didnt work either. 并且我在php-minishell上尝试了我的代码, http ://php-minishell.appspot.com/也不起作用。

here is the result 这是结果

Google App Engine/1.8.7
PHP 5.4.19
>>> file_get_contents("http://www.navyfield.com", false);
file_get_contents(http://www.navyfield.com): failed to open stream: Fetch error

anyone got idea about this? 有人对此有想法吗?

Done some checking it looks like that site is blocking the connection. 做一些检查,似乎该站点正在阻止连接。 I tried with URL fetch and with a raw socket from our IP range. 我尝试使用URL提取以及IP范围内的原始套接字。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM