protected function getGuzzleClient()
{
$options = [];
// Check if the client must use a proxy server.
if (!empty($_SERVER['HTTP_PROXY']) || !empty($_SERVER['http_proxy'])) {
$proxy = !empty($_SERVER['http_proxy']) ? $_SERVER['http_proxy'] : $_SERVER['HTTP_PROXY'];
$options['proxy'] = $proxy;
}
return new Client($options);
}