State
To get a proxy from a specific state, add the state flag to the authorization string. For example, country-us-state-alabama.
Click here to download the complete list of states.
The following are example combinations of country and state parameters.:
Country-State
Parameter
California, USA
country-us-state-california
England, United Kingdom
country-gb-state-england
Surin, Thailand
country-th-state-surin
Hong Kong Kowloon City
country-hk-state-kowloonc
Australia Victoria
country-au-state-victoria
Code example
In this example, a query to ipinfo.thordata.com is performed from a random IP address from California, USA:
curl -x "https://td-customer-USERNAME-country-us-state-california:[email protected]:9999" "https://ipinfo.thordata.com"using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class csharp_http
{
static void Main(string[] args)
{
Task t = new Task(DownloadPageAsync);
t.Start();
Console.ReadLine();
}
static async void DownloadPageAsync()
{
string page = "https://ipinfo.thordata.com";
var proxy = new WebProxy("http://t.na.thordata.net:9999")
{
UseDefaultCredentials = false,
Credentials = new NetworkCredential(
userName: "td-customer-USERNAME-country-us-state-california",
password: "PASSWORD")
};
var httpClientHandler = new HttpClientHandler()
{
Proxy = proxy,
};
var client = new HttpClient(handler: httpClientHandler, disposeHandler: true);
var response = await client.GetAsync(page);
using (HttpContent content = response.Content)
{
string result = await content.ReadAsStringAsync();
Console.WriteLine(result);
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}Find the complete list of states by clicking the file below:
Last updated
Was this helpful?