Replacing wget with curl