use GuzzleHttpClient;
$client = new GuzzleHttpClient();$res = $client->request('GET', 'https://api.github.com/user', [
'auth' => ['user', 'pass']
]);echo $res->getStatusCode();
2 回答
- 2 回答
- 0 关注
- 416 浏览
添加回答
举报
0/150
提交
取消