2009-10-08 86 views

回答

5

使用WebClient從.NET庫:

WebClient Client = new WebClient(); 
Client.DownloadFile("http://foo.bar", @"C:\filename.xml"); 
+0

@drorhan:這意味着你可能已經使用了不正確的URL。你是否通過代理使用互聯網?這也可能有所作爲。有關HTTP錯誤代碼,請參閱此處:http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html – csl 2009-10-08 12:34:10