Converted HttpClient to use Guzzle library instead of PEAR