The basic query only needs to pass username and password. No other parameters are required. In this type of query, the request is set to originate from a random IP address (proxy). Each new request will use a different proxy.
Code example
In the following example, a query to ipinfo.io is executed from a random IP:
package example;
import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;
public class Example {
public static void main(String[] args) throws Exception {
HttpHost entry = new HttpHost("proxy.abcproxy.com", 4950);
String query = Executor.newInstance()
.auth(entry, "USERNAME", "PASS")
.execute(Request.Get("http://icanhazip.com").viaProxy(entry))
.returnContent().asString();
System.out.println(query);
}
}
require 'uri'
require 'net/http'
uri = URI.parse('https://ipinfo.io/')
proxy = Net::HTTP::Proxy('proxy.abcproxy.com', 4950, 'USERNAME', 'PASSWORD')
req = Net::HTTP::Get.new(uri.path)
result = proxy.start(uri.host,uri.port) do |http|
http.request(req)
end
puts result.body
using System;
using System.Net;
class Example
{
static void Main()
{
var client = new WebClient();
client.Proxy = new WebProxy("proxy.abcproxy.com:4950");
client.Proxy.Credentials = new NetworkCredential("USERNAME", "PASSWORD");
Console.WriteLine(client.DownloadString("https://ipinfo.io"));
}
c
If you need any help, please feel free to contact customer service at support@abcproxy.com.