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

php curl 我用 get,對方用post 回 json,怎麼獲???

想問一下

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

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

回答
編輯回答
熟稔

訪問路由給對方,過來方法直接獲取$_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