Home  >  Article  >  php教程  >  CURL获取http对答头信息

CURL获取http对答头信息

WBOY
WBOYOriginal
2016-06-06 19:42:55986browse

CURL获取http应答头信息 CURL获取http应答头信息,应答的http头里面有多项数据,可是通过CURLOPT_HEADERFUNCTIONCURLOPT_HEADERDATA只能获取其中的一条,有没有方法获取多条信息,谢谢 ------解决思路---------------------- 你直接用这个CURLOPT_HEADER可以

CURL获取http应答头信息
CURL获取http应答头信息,应答的http头里面有多项数据,可是通过CURLOPT_HEADERFUNCTION    CURLOPT_HEADERDATA只能获取其中的一条,有没有方法获取多条信息,谢谢
------解决思路----------------------
你直接用这个CURLOPT_HEADER 可以不?
------解决思路----------------------
curl_getinfo()
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn