ip地址查询接口演示代码_.NET_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > .NET > ip地址查询接口演示代码

ip地址查询接口演示代码

 2014/9/9 18:36:42  lehehe  程序员俱乐部  我要评论(0)
  • 摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Net.Security;usingSystem.Security.Cryptography.X509Certificates;usingSystem.Net;usingSystem.IO;usingSystem.IO.Compression;usingSystem.Text.RegularExpressions
  • 标签:代码 接口

           
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Net;
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;
using System.Web.Script.Serialization;
namespace IP
{
    class Program
    {
        static void Main(string[] args)
        {
            string key = "047c10b650e548a5acbc7ee1147ead6f";
            string ip = "168.183.151.112";
            string url = "http://apis.haoservice.com/lifeservice/queryIpAddr?ip=" + ip + "&key=" + key;
            WebClient wc = new WebClient();
            wc.Encoding = Encoding.UTF8;
            string str = wc.DownloadString(url);
            Console.WriteLine(str);
            Console.ReadKey();

        }
    }
}
       
   
上一篇: 小米式“神文案”的3个经典案例 下一篇: 没有下一篇了!
发表评论
用户名: 匿名