use wget instead of curl might work!?