Rewrite with guzzle