HttP Header中加入 Authorization:XXXX
curl_setopt($curlobj,?CURLOPT_HTTPHEADER,?array( ????????????"Content-type:?application/json", ????????????"Authorization:?*******" ????????));
HttP Header無(wú)法加入Authorization信息,請(qǐng)問如何解決,謝謝
curl_setopt($curlobj,?CURLOPT_HTTPHEADER,?array( ????????????"Content-type:?application/json", ????????????"Authorization:?*******" ????????));
HttP Header無(wú)法加入Authorization信息,請(qǐng)問如何解決,謝謝
2015-05-21
舉報(bào)
2015-05-21
不好意思,是可以加入Authorization信息的,參數(shù)打錯(cuò)了,print_r(getallheaders());//打出頭信息