PHP关于curl_setopt几个参数设置的说明

WBOY
Release: 2016-06-23 13:23:06
Original
1100 people have browsed it

CURLOPT_HEADER    设置http头部信息是否输出,1---输出,0---不输出

CURLOPT_RETURNTRANSFER   设置curl请求返回的信息是直接显示,还是以字符串的格式输出,1---字符串形式输出,0---直接显示

CURLOPT_POSTFIELDS  设置请求的参数,如果参数中含有文件名,必须是完整的路径,并且须带上@,一般以数组的形式输出

CURLOPT_COOKIEJAR 设置当前请求结束后存储cookie的文件名

CURLOPT_COOKIEFILE  设置当前请求需要使用的cookie信息存储的文件名


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!