关于网友提出的“ c#写的从http路径下载文件速度很慢,怎么改进呢?”问题疑问,本网通过在网上对“ c#写的从http路径下载文件速度很慢,怎么改进呢?”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: c#写的从http路径下载文件速度很慢,怎么改进呢?
描述: WebRequest方式下载,速度只有30KB/s
解决方案1: 看看是不是这个原因:
What I have found to be the main culprit with slow web requests is the proxy property. If you set this property to null before you call the GetResponse method the query will skip the proxy autodetect step.
The proxy autodetect was taking up to 7 seconds to query before returning the response. It is a little annoying that this property is set on by default for the HttpWebRequest object.
来自:
http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow
以上介绍了“ c#写的从http路径下载文件速度很慢,怎么改进呢?”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/1943301.html