Replace CURL with URLfetch