fixed: Curl::OpenForWrite() should check whether we can write