首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

c#写的从http路径上载文件速度很慢,如何改进呢

2013-01-23 
c#写的从http路径下载文件速度很慢,怎么改进呢?WebRequest方式下载,速度只有30KB/s[解决办法]看看是不是这

c#写的从http路径下载文件速度很慢,怎么改进呢?
WebRequest方式下载,速度只有30KB/s
[解决办法]
看看是不是这个原因:

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

热点排行
Bad Request.