zoukankan      html  css  js  c++  java
  • 手机归属地演示代码

    手机归属地演示代码示例

    申请key值( http://www.haoservice.com/docs/14 )后输入要查手机号就可以用了,刚测试完,没问题.

    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 = "***********************************";

                string phone = "***********";

                string url = "http://apis.haoservice.com/mobile?phone=" + phone + "&key=" + key;

                WebClient wc = new WebClient();

                wc.Encoding = Encoding.UTF8;

                string str = wc.DownloadString(url);

                Console.WriteLine(str);

                Console.ReadKey();

            }

        }

    }

  • 相关阅读:
    选择排序
    冒泡排序
    java多线程
    Java中的内存泄露的几种可能
    "==" 与 “equals”
    保证service不被杀死的方法
    反射、注解、依赖
    引导页
    适配:px与dp转换
    四 主要的几种 Web 服务器
  • 原文地址:https://www.cnblogs.com/haoservice/p/3966095.html
Copyright © 2011-2022 走看看