curl -x p.proxy-wave.com:7777 -U "customer-USER:PASS" https://p.proxy-wave.com/location
import requests
username = "customer-USER"
password = "PASS"
proxy = "p.proxy-wave.com:7777"
proxies = {
'http': f'http://{username}:{password}@{proxy}',
'https': f'http://{username}:{password}@{proxy}'
}
response = requests.request(
'GET',
'https://p.proxy-wave.com/location',
proxies=proxies,
)
print(response.text)
import fetch from 'node-fetch';
import createHttpsProxyAgent from 'https-proxy-agent'
const username = 'customer-USER';
const password = 'PASS';
const proxy = 'p.proxy-wave.com:7777'
const agent = createHttpsProxyAgent(
`http://${username}:${password}@${proxy}`
);
const response = await fetch('https://p.proxy-wave.com/location', {
method: 'get',
agent: agent,
});
console.log(await response.text());
<?php
$username = 'customer-USER';
$password = 'PASS';
$proxy = 'pr.oxylabs.io:7777';
$query = curl_init('https://p.proxy-wave.com/location');
curl_setopt($query, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($query, CURLOPT_PROXY, "http://$proxy");
curl_setopt($query, CURLOPT_PROXYUSERPWD, "$username:$password");
$output = curl_exec($query);
curl_close($query);
if ($output)
echo $output;
?>
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
)
func main() {
const username = "customer-USER"
const password = "PASS"
const proxy = "p.proxy-wave.com:7777"
proxyUrl, _ := url.Parse(
fmt.Sprintf(
"http://%s:%s@%s",
username,
password,
proxy,
),
)
client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}}
request, _ := http.NewRequest("GET",
"https://p.proxy-wave.com/location",
nil,
)
request.SetBasicAuth(username, password)
response, err := client.Do(request)
if err != nil {
fmt.Println(err)
return
}
responseText, _ := ioutil.ReadAll(response.Body)
fmt.Println(string(responseText))
}
package example;
import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;
public class Main {
public static void main(String[] args) throws Exception {
String username = "customer-USER";
String password = "PASS";
String proxyHost = "pr.oxylabs.io";
int proxyPort = 7777;
HttpHost entry = new HttpHost(proxyHost, proxyPort);
String query = Executor.newInstance()
.auth(entry, username, password)
.execute(Request.Get("https://p.proxy-wave.com/location")
.viaProxy(entry))
.returnContent()
.asString();
System.out.println(query);
}
}
using System;
using System.Net;
class Example
{
static void Main()
{
var username = "customer-USER";
var password = "PASS";
var proxy = "p.proxy-wave.com:7777";
var client = new WebClient();
client.Proxy = new WebProxy(proxy);
client.Proxy.Credentials = new NetworkCredential(username, password);
Console.WriteLine(client.DownloadString("https://p.proxy-wave.com/location"));
}
}