实际下载地址解析的问题,在线等. http://im.qq.com/cgi-bin/skin/skin_dl?id=5927 下载完毕后是5927.kip,是个QQ皮肤我做了个下载的软件.我在下载的时候怎么才能让它自动分析到5927.kip文件啊.在线等.谢谢啊. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://im.qq.com/cgi-bin/skin/skin_dl?id=5927"); request.AllowAutoRedirect = false; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream dataStream = response.GetResponseStream(); string[] strFieName = response.Headers["Content-Disposition"].TrimEnd().Split(new char[] { '\"' }, StringSplitOptions.RemoveEmptyEntries); byte[] filecontent = new byte[response.ContentLength]; int offeset = 0; int count = dataStream.Read(filecontent, offeset, filecontent.Length); while (count > 0) { offeset += count; count = dataStream.Read(filecontent, offeset, filecontent.Length - offeset); } System.IO.File.WriteAllBytes(@"c:\" + strFieName[strFieName.Length - 1], filecontent); dataStream.Close(); response.Close(); *****************************************************************************欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/ 这就是http://im.qq.com/cgi-bin/skin/skin_dl?id=5927 谢谢啊.http://count.greendown.cn/go_down.asp?down_url=http://ydsoft.greendown.cn/200812/QQEditSkin.rar&downd_id=2&ID=40239&SOFTID=13170&down=yeshttp://et.finance.sina.com.cn/downxls.php?date=2009-05-18&symbol=sh600050这两个地址为什么不行.?在讯雷可以. vs2010 C#如何将内容写入EXCEL不同的SHEET表里? c# 按钮获取焦点问题 请教。。。 c# string 和 char 类型的差别 怎么用正则表达式取出一表中所有数据 怎样将C#程序编译成机器码 可不可以写一个通用的使用简单的方法来得到当前函数的参数值列表? 如何禁止移动用windows.open打开的页面。 关于程序员考试的问题 请大家帮忙看看,数据绑定的问题 winform的combobox问题 WinForm DataGridView公式问题? [图] 自定义的窗体控件?
request.AllowAutoRedirect = false;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream dataStream = response.GetResponseStream(); string[] strFieName = response.Headers["Content-Disposition"].TrimEnd().Split(new char[] { '\"' }, StringSplitOptions.RemoveEmptyEntries); byte[] filecontent = new byte[response.ContentLength]; int offeset = 0;
int count = dataStream.Read(filecontent, offeset, filecontent.Length);
while (count > 0)
{
offeset += count;
count = dataStream.Read(filecontent, offeset, filecontent.Length - offeset);
}
System.IO.File.WriteAllBytes(@"c:\" + strFieName[strFieName.Length - 1], filecontent);
dataStream.Close();
response.Close();
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/
http://et.finance.sina.com.cn/downxls.php?date=2009-05-18&symbol=sh600050
这两个地址为什么不行.?
在讯雷可以.