|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-09-05 12:06 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2014-09-05 12:06 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 00:00:01 2025 UTC |
Description: ------------ A link use PHP file_get_contents return null,Use Linux commend wegt or linux curl is ok.Other link use file_get_contents is ok.Because the link has special characters? Test script: --------------- PHP <?php //this is empty echo file_get_contents('http://irm.cninfo.com.cn/ircs/interaction/irmInformationList.do?pageNo=1&beginDate=2011-08-05&endDate=2014-09-05'); //php cURL is also empty //other link is ok echo file_get_contents('http://irm.cninfo.com.cn/ircs/interaction/irmInformationList.do?pageNo=1'); ?> Linux //this is ok wget http://irm.cninfo.com.cn/ircs/interaction/irmInformationList.do?pageNo=1&beginDate=2011-08-05&endDate=2014-09-05 //this is ok curl http://irm.cninfo.com.cn/ircs/interaction/irmInformationList.do?pageNo=1&beginDate=2011-08-05&endDate=2014-09-05