replace curl by guzzle