📜  httpclient 添加授权头交响乐 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:21.593000             🧑  作者: Mango

代码示例1
$response = $client->request('GET', 'https://...', [
    'auth_basic' => ['the-username', 'the-password'],
    // ...
]);