$param = [
'headers' => ['Accept' => 'application/xml'],
'verify' => false
];
$url = 'https://xxxxx';
$response = $this->http->get($url, $param);
$body = $response->getBody()->getContents();
print_r($body);
参考文章:https://mlog.club/article/3011591