import requests
if __name__ == '__main__':
proxyip = "http://username_custom_zone_US:password@us.swiftproxy.net:7878"
url = "http://ipinfo.io"
proxies = {
'http': proxyip,
}
data = requests.get(url=url, proxies=proxies)
print(data.text)
import fetch from 'node-fetch';
import createHttpsProxyAgent from 'https-proxy-agent'
const username = 'username_custom_zone_us';
const password = 'password';
const proxy = 'us.swiftproxy.net:7878'
const agent = createHttpsProxyAgent(
`http://${username}:${password}@${proxy}`
);
const response = await fetch('http://ipinfo.io', {
method: 'get',
agent: agent,
});
console.log(await response.text());
$ch = curl_init();
curl_setopt($ch, CURLOPT_PROXY, "us.swiftproxy.net" );
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "username_custom_zone_us:password");
curl_setopt($ch, CURLOPT_PROXYTYPE,CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_URL, 'http://ipinfo.io');
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
)
func main() {
proxyURL, _ := url.Parse("http://username_custom_zone_US:password@us.swiftproxy.net:7878")
proxy := http.ProxyURL(proxyURL)
transport := &http.Transport{
Proxy: proxy,
}
client := &http.Client{
Transport: transport,
}
targetURL := "http://ipinfo.io"
resp, err := client.Get(targetURL)
if err != nil {
fmt.Fprintln(os.Stderr, "Error fetching from", targetURL, ":", err)
os.Exit(1)
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Fprintln(os.Stderr, "Error reading response body:", err)
os.Exit(1)
}
fmt.Println(string(body))
}
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.*;
import java.util.Base64;
public class Main {
public static void main(String[] args) throws Exception {
try {
String proxyHost = "us.swiftproxy.net";
int proxyPort = 7878;
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort));
String username = "username_custom_zone_us";
String password = "password";
String credentials = username + ":" + password;
URL url = new URL("http://ipinfo.io");
HttpURLConnection connection = (HttpURLConnection) url.openConnection(proxy);
connection.setRequestMethod("GET");
connection.setRequestProperty("Proxy-Authorization", "Basic " + Base64.getEncoder().encodeToString(credentials.getBytes()));
int responseCode = connection.getResponseCode();
System.out.println("Response Code: " + responseCode);
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine;
StringBuilder response = new StringBuilder();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println((response.toString()));
} catch (IOException e) {
e.printStackTrace();
}
}
}
using System.Net;
using System.Threading;
var handler = new HttpClientHandler
{
UseProxy = true
};
var proxy = new WebProxy("http://us.swiftproxy.net:7878");
var proxyUsername = "username_custom_zone_us";
var proxyPass = "password";
proxy.Credentials = new NetworkCredential(proxyUsername, proxyPass);
handler.Proxy = proxy;
var httpClient = new HttpClient(handler);
httpClient.Timeout = TimeSpan.FromSeconds(15);
var task = httpClient.GetStringAsync("http://ipinfo.io/json");
task.Wait();
Console.WriteLine(task.Result);
What Do Our Customers Say?
I'm glad I found them and gave it a try!
There are a lot of proxy business in the market that promises the world but only SwiftProxy got the job done. Their proxies are fast and stable, and their customer support is always available to assist
They're amazing!
Swiftproxy provided me with excellent proxy services. The connections are fast and super stable! I have yet to have any bad experience with them.
As a person who has been using their services for months…
I've been using Swiftproxy for my SEO projects and the experience has been good. The proxies are reliable and the speeds are ok!
Highly recommend them.
Definitely recommend them! Their residential proxies are fast and reliable, perfect for my needs. Plus, their customer service is top-notch. I couldn't be happier with their service.
I was not disappointed and they…
Exceeded my expectations! I really don't have high expectations to begin with since I have never experienced a smooth proxy but Swiftproxy had only minimal down-time!
They offer fast and stable connections.
The proxies are incredibly fast and stable, perfect for my needs.