Changed the o flag in curl to O