Sending Requests

Test Command Request

Dedicated Data Center Proxies

plaintext

curl -x IP:Port -U "USERNAME:PASSWORD" "https://ipinfo.thordata.com"

Shared Data Center Proxies

plaintext

curl -x "https://td-customer-USERNAME:PASSWORD@host:Port" "https://ipinfo.thordata.com"

Echo

Browser Request (Taking Chrome as an Example)

  1. Open Chrome, go to Settings → System → Click "Open your computer's proxy settings".

  2. In the system network settings, enable manual proxy configuration.

  3. Enter the proxy server's IP address and Port.

  4. When the browser pops up an authentication window, enter your proxy Username and Password.

After configuration, visit https://ipinfo.thordata.com to verify whether the current IP has been changed to the proxy IP.For more tutorials on third-party integration tools, you can access the Integration Tutorials.

Echo

Code Request

Taking Python as an example, users only need to enter {username}:{password}{proxy_server} to use it.python运行

import requests

username = "Account-continent-Continent Parameter-country-Country/Region Parameter-state-State Parameter-city-City Parameter"
password = "Password"
proxy_server = "host:Port"

proxies = {"http": f"http://{username}:{password}@{proxy_server}"}
response = requests.get("http://ipinfo.thordata.com", proxies=proxies)
print(response.text)

Echo

Shared Proxy-Specific Parameters (URL Splicing)

Only shared proxies support specifying detailed location and session rules through parameters in the connection string.Code Example:plaintext

curl -x "host:Port" -U "td-customer-USERNAME-continent-Continent Parameter-country-Country/Region Parameter-state-State Parameter-city-City Parameter-asn-ISP Parameter-sessid-Sticky IP-sesstime-Session DurationPASSWORD" "https://ipinfo.thordata.com"
Query Parameter
Description

username

Proxy account username

host

Hostname

continent

Continent; no such parameter for random regions

country

Country/Region; no such parameter for random regions (use a 2-letter country code)

state

State; no such parameter for random regions

city

The city you want to specify; can be used without the "state" parameter

session

Required for sticky IP and IP switching; used to find a specific IP when fixing an IP or switching IPs

sessTime

Used together with the session to set the IP duration, with a maximum of 90 minutes

password

Proxy account password

asn

Specify the ISP of the country; no such parameter for random regions

Last updated

Was this helpful?