云服务器

地址:proxy.fanqieip.net,端口:12344

隧道验证方式

HTTP隧道授权模式:

请求头

通过用户名/密码的形式进行身份认证,该认证信息最终会转换为『Proxy-Authorization』协议头跟随请求一起发出。
为便于部分语言进行接入,平台亦支持通过 『Authorization』协议头进行隧道身份验证。

package example;

import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;

public class Example {
    public static void main(String[] args) throws Exception {
        System.out.println("To enable your free eval account and get "
            +"CUSTOMER, YOURZONE and YOURPASS, please contact "
            +"sales@fanqie.io");
        HttpHost proxy = new HttpHost("proxy.fanqieip.net", 12344);
String res = Executor.newInstance() .auth(proxy, "proxyUser", "123456") .execute(Request.Get("https://api.ip.sb/geoip").viaProxy(proxy)) .returnContent().asString(); System.out.println(res); } }