1# Route any request through a residential IP2curl -s -x "https://USER:[email protected]:31111" \3 "https://ipinfo.io" | jq45# A residential exit is selected for this connection
1import requests23proxy = "https://USER:[email protected]:31111"45r = requests.get(6 "https://ipinfo.io",7 proxies={"http": proxy, "https": proxy},8)910print(r.text) # residential exit details
1import { ProxyAgent } from "undici";23const dispatcher = new ProxyAgent(4 "https://USER:[email protected]:31111"5);67const res = await fetch("https://ipinfo.io", { dispatcher });8console.log(await res.text()); // residential exit details
1proxyURL, _ := url.Parse("https://USER:[email protected]:31111")23client := &http.Client{4 Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)},5}67resp, err := client.Get("https://ipinfo.io") // residential exit details
1Authenticator.setDefault(new Authenticator() {2 protected PasswordAuthentication getPasswordAuthentication() {3 return new PasswordAuthentication("USER", "PASS".toCharArray());4 }5});67var proxy = new Proxy(Proxy.Type.SOCKS,8 new InetSocketAddress("proxy.packetstream.io", 31113));9var url = URI.create("https://ipinfo.io").toURL();10try (var body = url.openConnection(proxy).getInputStream()) {11 System.out.println(new String(body.readAllBytes(), UTF_8));12}
1$client = new GuzzleHttp\Client();23$response = $client->get('https://ipinfo.io', [4 'proxy' => 'https://USER:[email protected]:31111',5]);67echo $response->getBody(); // residential exit details
1require "httpx"23proxy = HTTPX.plugin(:proxy).with_proxy(4 uri: "https://proxy.packetstream.io:31111",5 username: "USER",6 password: "PASS"7)89puts proxy.get("https://ipinfo.io").to_s
1let proxy = reqwest::Proxy::all(2 "https://proxy.packetstream.io:31111",3)?4.basic_auth("USER", "PASS");56let client = reqwest::blocking::Client::builder()7 .proxy(proxy).build()?;8let body = client.get("https://ipinfo.io").send()?.text()?;9println!("{body}");