Replace wget by curl