//
获取页面
private string CreateRequest(string strURL)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(strURL);
request.AllowAutoRedirect = true;
request.Accept = "text/html,
application/xhtml+xml,
application/xml;q=0.9,*/*;q=0.8";
request.Headers[HttpRequestHeader.AcceptEncoding] = "gzip, deflate";
request.Headers[HttpRequestHeader.AcceptLanguage] = "zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3";
request.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)";
request.KeepAlive = true;
request.Method = "POST";
var uri = new Uri(strURL);
request.Headers["x-flash-version"] = "10,1,53,64";
request.Co
ntentType = "
application/x-amf";
request.Headers[HttpRequestHeader.CacheControl] = "no-cache";
using (var stream = GetRespo
nseStream(request))
{
using (var newStream = new StreamReader(stream, Encoding.GetEncoding("GBK")))
{
return newStream.ReadToEnd();
}
}