Initial version of curl to guzzle conversion.