use GuzzleHttpClient;
$client = new GuzzleHttpClient();$res = $client->request('GET', 'https://api.github.com/user', [
'auth' => ['user', 'pass']
]);echo $res->getStatusCode();
- 2 回答
- 0 關(guān)注
- 430 瀏覽
添加回答
舉報
0/150
提交
取消