0
我需要在以下请求的标头中发送此Content-Type - application/json。 如何在这个函数中添加Content-Type应用程序/ json在一个head的数组中?如何在此请求中添加内容类型应用程序/ json
function sendOrder($arField){
$body='{
}';
$head=array("Authorization: ".$data['scheme']." ".$data['token']);
$data=self::getData("https://example.com",$body,$head);
return $data;
}
谢谢你的回答! – spinet