2011年8月12日

C# Winform程序获取外网IP地址

摘要: 两种通过第三方网站获取IP地址的方法第一种通过ip138网站获取 string strUrl = "http://www.ip138.com/ip2city.asp"; //获得IP的网址了 Uri uri = new Uri(strUrl); System.Net.WebRequest wr = System.Net.WebRequest.Create(uri); System.IO.Stream s = wr.GetResponse().GetResponseStream(); System.IO.StreamReader sr = new System.IO.Stre 阅读全文

posted @ 2011-08-12 17:01 空白画映 阅读(3851) 评论(0) 推荐(0)

C# Winform调用IP地址、手机归属和身份证查询接口

摘要: IP地址、手机归属和身份证查询接口1. 查询手机:http://www.yodao.com/smartresult-xml/search.s?type=mobile&q=手机号码2. 查询IP:http://www.yodao.com/smartresult-xml/search.s?type=ip&q=IP地址3. 查询身份证:http://www.yodao.com/smartresult-xml/search.s?type=id&q=身份证号码返回一个XML文件,通过程序去解析就可以得到相应的信息下面是解析返回的代码 XmlDocument XmlDoc = ne 阅读全文

posted @ 2011-08-12 16:25 空白画映 阅读(1544) 评论(0) 推荐(0)

导航