WebClient Upload file to web
问题 I would like to know if I code it correctly. To upload file manually to my workplace server, I have to use Login ID and Password. With the clode below, should I include my loginID and Password as well? public void SaveLogsToWeb(string logFileName) { WebClient webClient = new WebClient(); string webAddress = null; try { webAddress = @"http://myCompany/ShareDoc/"; webClient.Credentials = CredentialCache.DefaultCredentials; WebRequest serverRequest = WebRequest.Create(webAddress); WebResponse