curl error:Encountered end of file bool(false)