【问题标题】:Fastest way to download from web从网上下载最快的方法
【发布时间】:2010-02-13 22:04:36
【问题描述】:

我希望您对从网络服务器下载文件的最佳/最快方式是什么提出意见?

我使用过 WebClient。但大多数时候它的下载速度比我的网络浏览器慢...

WebClient c = new WebClient();
using(c)
{
     c.DownloadFile("http://blahblah.com/somefile.html", "righthere.html");
}

【问题讨论】:

标签: c# download


【解决方案1】:

您是否尝试过 msdn doc 中的 HttpWebRequest() 示例代码?我已经使用了数十亿次,效果非常好。定义慢 - 两倍长?您是否在比较中计算浏览器的启动时间?

【讨论】:

  • 感谢您的提及...是的,我一直在数...非常不耐烦。 Windows 7 上的 Internet Explorer 8 需要 1 秒钟才能显示 Google.com(在我删除了所有 Internet 历史记录等之后)。而 WebClient 耗时超过 15 秒
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多