日期:2014-05-17 浏览次数:21108 次
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>IP地址查询</title>
<meta http-equiv="Refresh" content="0; url=http://iframe.ip138.com/ic.asp" />
</head>
<body>
<script type="text/javascript">
location.href="http://iframe.ip138.com/ic.asp";
</script>
<a href="http://www.ip138.com/ips138.asp">IP地址所在地查询</a>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title> 您的IP地址 </title>
</head>
<body style="margin:0px"><center>您的IP是:[27.113.53.104] 来自:韩国</center></body></html>
WebClient wc = new WebClient();
return wc.DownloadString(url);
System.Net.CookieContainer cookies = new System.Net.CookieContainer();
//HttpHelper.GetHtml("http://www.ip138.com/ip2city.asp", cookies);
//HttpHelper.GetHtml("http://city.ip138.com/ip2city.asp", cookies);
Console.WriteLine(HttpHelper.GetHtml("http://iframe.ip138.com/ic.asp", cookies));