curl -x ***.abcproxy .com :4950  -U "customer-USER:PASS"   ipinfo.io 
    import  requests
    username = "customer-USER" 
    password = "PASS" 
    proxy = "***.abcproxy.com:4950" 
    
    proxies = {
        'http' : f'http://{username} :{password} @{proxy} ' ,
        'https' : f'http://{username} :{password} @{proxy} ' 
    }
    
    response = requests.request(
        'GET' ,
        ' ipinfo.io' ,
        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 = '***.abcproxy.com:4950' 
    
    const  agent = createHttpsProxyAgent (
        `http://${username} :${password} @${proxy} ` 
    );
    
    const  response = await  fetch (' ipinfo.io' , {
        method : 'get' ,
        agent : agent,
    });
    
    console .log (await  response.text ());
    <?php  
    $username  = 'customer-USER' ;
    $password  = 'PASS' ;
    $proxy  = '***.abcproxy.com:4950' ;
    
    $query  = curl_init (' ipinfo.io' );
    
    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 = "***.abcproxy.com:4950" 
    
        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" ,
        " ipinfo.io" ,
        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  =  "***.abcproxy.com" ;
        int  proxyPort  =  4950 ;
    
        HttpHost  entry  =  new  HttpHost (proxyHost, proxyPort);
        String  query  =  Executor.newInstance()
            .auth(entry, username, password)
            .execute(Request.Get(" ipinfo.io" )
            .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 = "***.abcproxy.com:4950" ;
    
        var  client = new  WebClient();
        client.Proxy = new  WebProxy(proxy);
        client.Proxy.Credentials = new  NetworkCredential(username, password);
        Console.WriteLine(client.DownloadString(" ipinfo.io" ));
        }
    }
 
              
                
    curl --socks5 1.2 .3 .4 :1180  -U "USER:PASS"   ipinfo.io 
    import  requests
    username = "USER" 
    password = "PASS" 
    proxy = "1.2.3.4:1180" 
    
    proxies = {
        'http' : f'socks5://{username} :{password} @{proxy} ' ,
        'https' : f'socks5://{username} :{password} @{proxy} ' 
    }
    
    response = requests.request(
        'GET' ,
        ' ipinfo.io' ,
        proxies=proxies,
    )
    
    print (response.text)
    import  fetch from  'node-fetch' ;
    import  { SocksProxyAgent  } from  'socks-proxy-agent' 
    
    const  username = 'USER' ;
    const  password = 'PASS' ;
    const  proxy = '1.2.3.4:1180' ;
    
    const  formattedProxy = `socks5://${username} :${password} @${proxy} ` ;
    const  agent = new  SocksProxyAgent (formattedProxy);
    
    const  response = await  fetch (' ipinfo.io' , {
        method : 'get' ,
        agent : agent,
    });
    
    console .log (await  response.text ());
    <?php 
    $username  = 'USER' ;
    $password  = 'PASS' ;
    $proxy  = '1.2.3.4:1180' ;
    
    $query  = curl_init (' ipinfo.io' );
    
    curl_setopt ($query , CURLOPT_RETURNTRANSFER, 1 );
    curl_setopt ($query , CURLOPT_PROXY, "socks5://$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" 
    
        "golang.org/x/net/proxy" 
    )
    
    type  Auth struct  {
        User, Password string 
    }
    
    func  main () const  username = "USER" 
        const  password = "PASS" 
        const  proxyAddr = "1.2.3.4:1180" 
    
        var  proxyAuth *proxy.Auth
        if  username != ""  {
        proxyAuth = new (proxy.Auth)
        proxyAuth.User = username
        proxyAuth.Password = password
        }
    
        dialSocksProxy, err := proxy.SOCKS5("tcp" , proxyAddr, proxyAuth, proxy.Direct)
        if  err != nil  {
        fmt.Println("Error connecting to proxy:" , err)
        }
    
        client := &http.Client{Transport: &http.Transport{Dial: dialSocksProxy.Dial}}
        request, _ := http.NewRequest("GET" ,
        " ipinfo.io" ,
        nil ,
        )
    
        response, err := client.Do(request)
        if  err != nil  {
        fmt.Println(err)
        return 
        }
    
        responseText, _ := ioutil.ReadAll(response.Body)
        fmt.Println(string (responseText))
    }
                        
    undefined
    using  System;
    using  System.Net;
    class  Example 
    {
    static  void  Main ()var  username = "USER" ;
        var  password = "PASS" ;
        var  proxy = "socks5://1.2.3.4:1180" ;
        var  client = new  WebClient();
        client.Proxy = new  WebProxy(proxy);
        client.Proxy.Credentials = new  NetworkCredential(username, password);
        Console.WriteLine(client.DownloadString(" ipinfo.io" ));
    }
    }
 
              
                
    curl -x 1.2 .3 .4 .:60000  -U "USER:PASS"   ipinfo.io 
    import  requests
    username = "USER" 
    password = "PASS" 
    proxy = "1.2.3.4:60000" 
    
    proxies = {
        'http' : f'http://{username} :{password} @{proxy} ' ,
        'https' : f'http://{username} :{password} @{proxy} ' 
    }
    
    response = requests.request(
        'GET' ,
        ' ipinfo.io' ,
        proxies=proxies,
    )
    
    print (response.text)
    import  fetch from  'node-fetch' ;
    import  createHttpsProxyAgent from  'https-proxy-agent' 
    
    const  username = 'USER' ;
    const  password = 'PASS' ;
    const  proxy = '1.2.3.4:60000' 
    
    const  agent = createHttpsProxyAgent (
        `http://${username} :${password} @${proxy} ` 
    );
    
    const  response = await  fetch (' ipinfo.io' , {
        method : 'get' ,
        agent : agent,
    });
    
    console .log (await  response.text ());
    <?php 
    $username  = 'USER' ;
    $password  = 'PASS' ;
    $proxy  = '1.2.3.4:60000' ;
    
    $query  = curl_init (' ipinfo.io' );
    
    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 = "USER" 
        const  password = "PASS" 
        const  proxy = "1.2.3.4:60000" 
    
        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" ,
        " ipinfo.io" ,
        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  =  "USER" ;
    String  password  =  "PASS" ;
    String  proxyHost  =  "1.2.3.4" ;
    int  proxyPort  =  60000 ;
    HttpHost  entry  =  new  HttpHost (proxyHost, proxyPort);
    String  query  =  Executor.newInstance()
        .auth(entry, username, password)
        .execute(
          Request
          .Get(" ipinfo.io" )
          .viaProxy(entry))
        .returnContent()
        .asString();
    System.out.println(query);
  }
}
    using  System;
    using  System.Net;
    
    class  Example 
    {
        static  void  Main ()var  username = "USER" ;
        var  password = "PASS" ;
        var  proxy = "1.2.3.4:60000" ;
    
        var  client = new  WebClient();
        client.Proxy = new  WebProxy(proxy);
        client.Proxy.Credentials = new  NetworkCredential(username, password);
        Console.WriteLine(
            client.DownloadString(" ipinfo.io" )
        );
        }
    }
 
              Copy 
              
                
                  cURL
                 
                
                  Python
                 
                
                  Node.js
                 
                
                  PHP
                 
                
                  GO
                 
                
                  Java
                 
                
                  C#