,为什么我没有得到有关的file_get_contents($ myurl)回报,但我得到的输出wget的file_get_contents()没有返回?
更新:
我使用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”?
请显示一些代码,并更详细地解释你在做什么。 – 2010-05-21 09:26:45