你可以使用 -H 或--header 选项来添加请求头。例如,要添加一个名为 Content-Type 的请求头,你可以这样做: bash curl -H "Content-Type: application/json" [URL] 3. 掌握如何为 curl 命令的请求头设置多个参数 要添加多个请求头,只需多次使用 -H 选项。例如,要同时添加 Content-Type 和Authorization 请求...
$threeDS2RequestData['name'] = "测试品牌11"; $url = 'http://api.kingdee.com/jdy/basedata/material_brand_save?access_token='.$token; $result = $this->curl_request($url,json_encode($threeDS2RequestData),'POST',$header); print_r($result);die; $ret = json_decode($result,true); p...