日期:2014-05-18 浏览次数:20859 次
string postStr = "mfiles=183474106%7C%7C%7C%E4%B8%8D%E5%BF%85%E5%8D%87%E7%BA%A7Windows+7+SP1%E7%9A%848%E5%A4%A7%E7%90%86%E7%94%B1.doc%7C%7C%7C0%2F%2F%2F&dest_dirid=0"; Byte[] postData = Encoding.UTF8.GetBytes(postStr); string header = string.Format("Accept:application/json, text/javascript, */*; q=0.01\r\nAccept-Charset:GBK,utf-8;q=0.7,*;q=0.3\r\nAccept-Encoding:gzip,deflate,sdch\r\nAccept-Language:zh-CN,zh;q=0.8\r\nConnection:keep-alive\r\nContent-Length:599\r\nContent-Type:application/x-www-form-urlencoded\r\nReferer:http://vdisk.weibo.com/file/list\r\nUser-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.77 Safari/537.1"); string url = "http://vdisk.weibo.com/file/moveFiles"; webBrowser2.Document.Cookie = "省略cookie "; webBrowser2.Navigate(url, "", postData, header);