IP笔记
static void Main(string[] args)
{
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://eccrmdev/ordershow/UserLogin.aspx?aid=0F9ED5ABDF32FCC4A7B1B4B8F40576F9&tid=C430AB14D835503D");
request.Headers.Add("REMOTE_ADDR", "192.168.5.88");
request.Headers.Add("VIA", "ghj1976");
//request.Headers.Add("X_FORWARDED_FOR", null);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader stream = new StreamReader(response.GetResponseStream());
string info = stream.ReadToEnd();
stream.Close();
response.Close();
request = null;
Console.Write(info);
Console.ReadLine();
}
编辑器加载中...
-------------------------------------------------
!!!作者:木由水 http://www.cnblogs.com/muyoushui