Use Guzzle instead of curl directly.