1. <s id="4jtld"></s>
    1. <span id="4jtld"><meter id="4jtld"></meter></span>

        <span id="4jtld"></span>
      1. <s id="4jtld"><noscript id="4jtld"><i id="4jtld"></i></noscript></s>
        溫馨提示×

        怎么通過網站API接口查詢ICP域名備案信息

        發布時間:2020-06-02 15:42:25 來源:億速云 閱讀:498 作者:Leah 欄目:開發技術

        怎樣能快速查詢ICP域名備案信息?我們可以通過網站API接口查詢ICP域名備案信息,這篇文章將給大家介紹通過網站API接口查詢ICP域名備案信息的方法。

        調用代碼

        HP調用演示:

        $url = 'http://www.baidu.com';
        $api_url = 'http://www.beiancx.cn/icpcx?url_long=http://www.baidu.cn/;
        $short_url = file_get_contents($api_url);
        echo $short_url;

        JAVA調用演示:

        public static void main(String path[]) throws Exception {
        URL u = new URL("http://www.beiancx.cn/icpcx?url_long=http://www.baidu.cn/");
        InputStream in = u.openStream();
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        try {
        byte buf[] = new byte[1024];
        int read = 0;
        while ((read = in .read(buf)) > 0) {
        out.write(buf, 0, read);
        }
        } finally {
        if ( in != null) {
        in .close();
        }
        }
        byte b[] = out.toByteArray();
        System.out.println(new String(b, "utf-8"));
        }

        Python調用演示:

        import urllib, urllib2, sys
        host = 'http://www.beiancx.cn'
        path = '/icpcx?url_long'
        method = 'GET'
        querys = 'url_long=http%3A%2F%2Fwww.baidu.com'
        bodys = {}
        url = host + path + '?' + querys
        request = urllib2.Request(url)
        response = urllib2.urlopen(request)
        content = response.read()
        if (content):
        print(content)

        看完這篇文章,你們學會通過網站API接口查詢ICP域名備案信息的方法了嗎?如果還想學到更多技能或想了解更多相關內容,歡迎關注億速云行業資訊頻道。

        免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

        主題地圖

        欧美午夜理伦三级在线观看,欧美午夜乱伦片,欧美午夜乱色视频在线观看,欧美午夜免费一区二区,欧美午夜片欧美片在线观看