PHP中curl如何设置header?
PHP中curl如何设置header?
在PHP扩展库curl中可以通过函数“curl_setopt()”设置选项常量“CURLOPT_HTTPHEADER”,来设置header,使用时将header数据传入第3个参数即可。
推荐教程:《PHP》
网站标题:PHP中curl如何设置header?
网址分享:http://scyanting.com/article/cgjgde.html
PHP中curl如何设置header?
在PHP扩展库curl中可以通过函数“curl_setopt()”设置选项常量“CURLOPT_HTTPHEADER”,来设置header,使用时将header数据传入第3个参数即可。
推荐教程:《PHP》
网站标题:PHP中curl如何设置header?
网址分享:http://scyanting.com/article/cgjgde.html