curl -x proxyscrape.com:7777 -U "kunde-USER:PASS" https://proxyscrape.com
import requests
username = "customer-USER"
password = "PASS"
proxy = "proxyscrape.com:7777"
proxies = {
'http': f'http://{username}:{password}@{proxy}',
'https': f'http://{username}:{password}@{proxy}'
}
response = requests.request(
'GET',
'https://proxyscrape.com',
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 = 'proxyscrape.com:7777'
const agent = createHttpsProxyAgent(
`http://${username}:${password}@${proxy}`
);
const response = await fetch('https://proxyscrape.com', {
method: 'get',
agent: agent,
});
console.log(await response.text());
<?php
$username = 'customer-USER';
$password = 'PASS';
$proxy = 'proxyscrape.com:7777';
$query = curl_init('https://proxyscrape.com');
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 = "proxyscrape.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://proxyscrape.com",
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 = "proxyscrape.com";
int proxyPort = 7777;
HttpHost entry = new HttpHost(proxyHost, proxyPort);
String query = Executor.newInstance()
.auth(entry, username, password)
.execute(Request.Get("https://proxyscrape.com")
.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 = "proxyscrape.com:7777";
var client = new WebClient();
client.Proxy = new WebProxy(proxy);
client.Proxy.Credentials = new NetworkCredential(username, password);
Console.WriteLine(client.DownloadString("https://proxyscrape.com"));
}
}