Code examples
All examples use the EU gateway and German targeting; substitute your own credentials and options.
# HTTPS through HTTP CONNECTcurl -x http://USER-cc-de:PASS@eu.tpp.io:1080 https://api.ipify.org
# SOCKS5 - socks5h so the domain is resolved at the exit, not on your machinecurl -x socks5h://USER-cc-de:PASS@eu.tpp.io:1080 https://api.ipify.org
# Sticky sessioncurl -x http://USER-cc-de-session-a81f:PASS@eu.tpp.io:1080 https://api.ipify.orgPython
Section titled “Python”import requests
proxy = "http://USER-cc-de:PASS@eu.tpp.io:1080"r = requests.get("https://api.ipify.org", proxies={"http": proxy, "https": proxy})print(r.text)Sticky session per task:
import secrets
session = secrets.token_hex(4)proxy = f"http://USER-cc-de-session-{session}:PASS@eu.tpp.io:1080"Node.js
Section titled “Node.js”import { ProxyAgent } from 'undici'
const agent = new ProxyAgent('http://USER-cc-de:PASS@eu.tpp.io:1080')const res = await fetch('https://api.ipify.org', { dispatcher: agent })console.log(await res.text())package main
import ( "fmt" "io" "net/http" "net/url")
func main() { proxy, _ := url.Parse("http://USER-cc-de:PASS@eu.tpp.io:1080") client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxy)}} res, _ := client.Get("https://api.ipify.org") defer res.Body.Close() ip, _ := io.ReadAll(res.Body) fmt.Println(string(ip))}