2009-10-08 88 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