需要设置
curl_setopt($ch,CURLOPT_HTTPHEADER,$header);
$header是数组形式
例子:
$header=array(
"Accept: application/json",
"Content-Type: application/json;charset=utf-8",
);
需要设置
curl_setopt($ch,CURLOPT_HTTPHEADER,$header);
$header是数组形式
例子:
$header=array(
"Accept: application/json",
"Content-Type: application/json;charset=utf-8",
);