-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();
}
4

1 回答 1

-1

尝试使用 HttpWebRequest 类。以下是示例: 第一 第二

于 2013-04-26T12:55:34.730 回答