curl error: Failure when receiving data from the peer