Home >Backend Development >PHP Tutorial >php中用curl获取验证码时同时获取cookies乱码

php中用curl获取验证码时同时获取cookies乱码

WBOY
WBOYOriginal
2016-06-02 11:32:011046browse

phpcurl乱码

我用curl获取验证码时同时想获取cookies信息但是乱码。

curl获取时头信息时“Content-Type: text/html;”这个导致了乱码。

请问怎么解决,让验证码显示同时也能输出cookies?

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