111,125
社区成员
发帖
与我相关
我的任务
分享 Uri uri = new Uri(@"http://www.ip138.com/ip2city.asp");
System.Net.WebRequest wr = System.Net.WebRequest.Create(uri);
System.IO.Stream s = wr.GetResponse().GetResponseStream();
Uri uri = new Uri(@"http://www.ip138.com/ip2city.asp");
System.Net.WebRequest wre = System.Net.WebRequest.Create(uri);
System.IO.Stream s = wre.GetResponse().GetResponseStream();
StreamReader srd = new StreamReader(s);
string res2 = srd.ReadToEnd();
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title> ����IP��ַ </title>
</head>
<body style="margin:0px"><center>����IP��ַ�ǣ�[203.110.131.5] </center></body></html>