CURL ERROR: transfer closed with 1284509 bytes remaining to read