Skip to content

发起代理请求 ​

拿到静态独享代理的连接地址与账密后,可以在各种编程语言或客户端中建立连接。


代码示例 ​

请将 USER、PASS 和 us-ca.edge.joyproxy.com:10001 替换为你提取到的真实端点:

cURL ​

bash
curl -x http://USER:[email protected]:10001 https://api.ipify.org

Python ​

python
import requests

proxy = "http://USER:[email protected]:10001"
res = requests.get("https://api.ipify.org", proxies={"http": proxy, "https": proxy}, timeout=15)
print("静态出口 IP:", res.text)

Node.js ​

javascript
const { HttpsProxyAgent } = require("https-proxy-agent");

const agent = new HttpsProxyAgent("http://USER:[email protected]:10001");
const res = await fetch("https://api.ipify.org", { agent });
console.log("静态出口 IP:", await res.text());

客户端与第三方软件集成 ​