Home >Backend Development >PHP Tutorial > curl保存cookies的有关问题

curl保存cookies的有关问题

WBOY
WBOYOriginal
2016-06-13 12:46:19913browse

curl保存cookies的问题
有的网站会用不同的域名设置COOKIE,这样好像CURL就会漏掉一些COOKIE。例如CURL访问网站www.xxx.com首页时,它会立即设置一个属于xxx.com的COOKIE,在首页填写用户名确定后转到www.xxx.com/next.php,这时会设置一个属于www.xxx.com的COOKIE。请问这两个COOKIE要怎么成功获取呢?

Curl Cookie 域名
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