为什么我没有在 file_get_contents($myurl) 上得到回报,但我确实得到了 wget 的输出
更新:
我使用 curl 来获取返回标题和结果,并发现它在标题上而不是在正文中
HTTP/1.1 200 Document follows
Transfer-Encoding: chunked
Content-type: text/plain
Server: XMS (724Solutions HTA XSAM_30_M2_B020 20070803.172831)
Date: Fri, 21 May 2010 10:48:31 GMT
Accept-Ranges: bytes
HTTP/1.1 404 ChargedPartyNotAvailable
Transfer-Encoding: chunked
Content-type: text/plain
Server: XMS (724Solutions HTA XSAM_30_M2_B020 20070803.172831)
Date: Fri, 21 May 2010 10:34:13 GMT
Accept-Ranges: bytes
如何仅提取“200 Document Follow”和“404 ChargedPartyNotAvailable”?