http://im.qq.com/cgi-bin/skin/skin_dl?id=5927 下载完毕后是5927.kip,是个QQ皮肤
我做了个下载的软件.
我在下载的时候怎么才能让它自动分析到5927.kip文件啊.
在线等.谢谢啊.

解决方案 »

  1.   

    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/
      

  2.   

    这就是http://im.qq.com/cgi-bin/skin/skin_dl?id=5927
      

  3.   

    谢谢啊.http://count.greendown.cn/go_down.asp?down_url=http://ydsoft.greendown.cn/200812/QQEditSkin.rar&downd_id=2&ID=40239&SOFTID=13170&down=yes
    http://et.finance.sina.com.cn/downxls.php?date=2009-05-18&symbol=sh600050
    这两个地址为什么不行.?
    在讯雷可以.