# Sending Requests

## Test Command Request

**Dedicated Data Center Proxies**

plaintext

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

**Shared Data Center Proxies**

plaintext

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

Echo

<figure><img src="https://340306199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1wQhlaRQzrtcn9wgMUU5%2Fuploads%2FtHtgNRsGo8dmEOUaEL4L%2Fimage.png?alt=media&#x26;token=02f44e9c-76a5-4075-a030-c34f6043c6a5" alt=""><figcaption></figcaption></figure>

&#x20;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](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

![](https://alidocs.dingtalk.com/core/api/resources/img/5eecdaf48460cde5b520689a18265cfdaced3786305c7e9e75b8339e1c4c2483b1dcbfce7603ca5f39e8703ac5556d0d59255c06f32a8ce7eb292a287ec346263518350ac6acd645e231a715518a92b628c969c3efb9926aee41679fea22373b?tmpCode=b22d0e1d-5491-46ba-a5dd-c5b05af3d4d1)

## &#x20;Code Request

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

```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

<figure><img src="https://340306199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1wQhlaRQzrtcn9wgMUU5%2Fuploads%2FGUcCopRXhvRGp7mUcs8D%2Fimage.png?alt=media&#x26;token=f200a3a5-bfa2-45b6-af5e-19e712f51ffa" alt=""><figcaption></figcaption></figure>

## &#x20;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

```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                                   |
