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();

            }

        }

    }

  • 相关阅读:
    Socket网络编程--简单Web服务器(4)
    GCC学习笔记
    字符分隔符'1'(u0001)的困惑
    g++编译时遇到问题undefined reference to
    ROS学习笔记(三)
    cJSON笔记
    ROS学习笔记(二)
    ROS学习笔记(一)
    ffmpeg推流方式采用TCP协议
    Android OS的image文件组成
  • 原文地址:https://www.cnblogs.com/haoservice/p/3966095.html
Copyright © 2011-2022 走看看