-2
public int UploadFile(string url, string localFile,out string a_Error)
{
WebClient webClient = new System.Net.WebClient();
webClient.Proxy = null;
webClient.Credentials = new NetworkCredential(Credential.UserName, Credential.Password);
webClient.UploadFile(url, "PUT", localFile);
webClient.Dispose();
}
請閱讀http://tinyurl.com/so-list - 只是包括標題,然後代碼是不夠的。 – 2013-04-09 13:57:41