Curl Failed: transfer closed with outstanding read data remaining