replace raw curl to Guzzle