# 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="/files/b3YLCHHvDhH50WzXnWDq" 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="/files/ypVKLRhdFAJ2NMSBEHGx" 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                                   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.thordata.com/doc/proxies/datacenter-proxies/sending-requests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
