php中请求接口如何在头部信息header中传token和参数
以下是guzzlehttp的实现方式
```
$token = $request->header()['authorization'][0];
echo $token;
//Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvc2FuZGJveC5pbnRlcmZhY2UuY2MubWVpcmVuamkudmlwXC9hcGlcL3YxXC9hdXRoXC9hZG1pbl9sb2dpbiIsImlhdCI6MTY3NzA0NTY0MiwiZXhwIjoxNjc3MTMyMDQyLCJuYmYiOjE2NzcwNDU2NDIsImp0aSI6InoyOUR4bklaMGNGZU5ON04iLCJzdWIiOjI3OCwicHJ2IjoiNTUwOTgxMmU1OTRiOWYyOWE1ODhkYzkxMmM4N2Y1YmExYjY3MzZjNCJ9.Gmt3OKpnS2kQ-G2S25Nyltps-rHc4m4FVfCmrRjq1h4
$url = str_replace("/hprose/server","",config('app.rpc_url'))."/v1/user/permission";
$http = new \GuzzleHttp\Client;
$res = $http->request('GET', $url, [
'headers' => [
'Authorization' => $token,
],
'query' => ['param' => 'value'],
]);
$result = $res->getBody()->getContents();
$ouser->permission_code = json_decode($result);
```