use wget instead of curl for https