Since some machine might lack curl-php lib, remove curl dependent code