【发布时间】:2011-02-22 06:41:26
【问题描述】:
为什么我在 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”?
【问题讨论】:
-
请显示一些代码并更详细地解释你在做什么。
标签: php file-get-contents