City
Add a city parameter to narrow down to city-level targeting.For example, country-US-city-houston means that a proxy from houston, US, will handle the query.
Here are a few examples of valid combinations of country and city parameters
country-city
Parameters
Germany - Munich
country-DE-city-munich
India - New Delhi
country-IN-city-delhi
Thailand - Bangkok
country-TH-city-bangkok
South Korea - Seoul
country-KR-city-seoul
Japan - Tokyo
country-JP-city-tokyo
Code examples
In this example, a query to ipinfo.thordata.com is performed from a random IP address from Hayward, USA:
curl -x "https://td-customer-USERNAME-country-us-city-hayward:PASSWORD@t.na.thordata.net:9999" "https://ipinfo.thordata.com"using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
class csharp_https
{
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("https://t.na.thordata.net:9999")
{
UseDefaultCredentials = false,
Credentials = new NetworkCredential(
userName: "td-customer-USERNAME-country-us-city-hayward",
password: "PASSWORD")
};
var httpClientHandler = new HttpClientHandler()
{
Proxy = proxy,
ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
};
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 city by clicking the file below:
Last updated
Was this helpful?