62,243
社区成员




HttpCookie getCookie = Request.Cookies["HS_PASSPORT"];
if (getCookie != null)
{
string cookie; //由当前的请求获得COOKIE HS_PASSPORT
cookie = getCookie.Value.ToString();
string URI = "http://newpay.169.net/cgi-bin/vip_op.fcgi?action=Query";
HttpWebRequest request = WebRequest.Create(URI) as HttpWebRequest;
request.Method = "GET";
request.KeepAlive = false;
request.Headers.Add("Cookie: " + cookie); //不确定Add是不是这样用
HttpWebResponse response = request.GetResponse() as HttpWebResponse;
System.IO.Stream responseStream = response.GetResponseStream();
System.IO.StreamReader reader = new System.IO.StreamReader(responseStream, System.Text.Encoding.UTF8);
string srcString = reader.ReadToEnd();
}