云服务器

地址: proxy.heliuscloud.net, 端口: 23564

隧道验证方式

HTTP隧道授权模式:

请求头
通过用户名/密码的形式进行身份认证,该认证信息最终会转换为 『Proxy-Authorization』 协议头跟随请求一起发出。
为便于部分语言进行接入,平台亦支持通过 『Authorization』 协议头进行隧道身份验证。
Rust
#![deny(warnings)]
// This is using the `tokio` runtime. You'll need the following dependency:
//
// `tokio = { version = "0.2", features = ["macros"] }`

async fn main() -> Result<(), reqwest::Error> {
    let res = reqwest::Client::builder()
    .proxy(
       reqwest::Proxy::http("http://proxy.heliuscloud.net:23564")        
        .unwrap()
        .basic_auth("proxyUser", "password"),
    )
    .build()
    .unwrap()
    .get("https://api.ip.sb/geoip")
    .send()
    .await

    let body = res.text().await?;

    println!(body);
}