如类似以下的代码: 代码如下: Uri uri = new Uri(targetUrl);//targetUrl对应文件的绝对路径 System.Net.HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri); request.Method = “PUT”; request.Credentials = System.Net.CredentialCache.DefaultCredentials; request.ContentLength = stream.Length; 文件名为:fr#32%.xls (excel附件