鍍金池/ 問(wèn)答/Java  PHP  Linux  網(wǎng)絡(luò)安全/ php curl 我用 get,對(duì)方用post 回 json,怎麼獲???

php curl 我用 get,對(duì)方用post 回 json,怎麼獲?。?/h1>

想問(wèn)一下

http://xxxx.com/sss?response_type=code&client_id=1iB0vzgpp7IUI4MUrDAFMU&redirect_uri=callback.php&scope=notify&state=fkokef&response_mode=form_post

假設(shè)我要這樣 get 過(guò)去
對(duì)方會(huì)回 code 跟 state 用json格式回給我
那我這邊要怎麼顯示他?!

回答
編輯回答
熟稔

訪問(wèn)路由給對(duì)方,過(guò)來(lái)方法直接獲取$_POST即可啊

2017年9月23日 02:40
編輯回答
純妹
$json = file_get_contents('http://xxxx.com/sss?response_type=code&client_id=1iB0vzgpp7IUI4MUrDAFMU&redirect_uri=callback.php&scope=notify&state=fkokef&response_mode=form_post');
echo $json;
2018年7月12日 12:19