> For the complete documentation index, see [llms.txt](https://doc.thordata.com/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/doc/zh-hk/dai-li/shu-ju-zhong-xin-dai-li/fa-song-qing-qiu.md).

# 發送請求

## 測試指令請求

**專用數據中心代理**

plaintext

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

**共享數據中心代理**

plaintext

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

回應

<figure><img src="/files/sAXIZrZTO9TdFV2Sqe8m" alt=""><figcaption></figcaption></figure>

## 瀏覽器請求（以 Chrome 為例）

1. 開啟 Chrome，進入設定→系統→點擊「開啟您電腦的代理設定」。
2. 在系統網路設定中，啟用手動代理設定。
3. 輸入代理伺服器的 IP 位址與連接埠。
4. 當瀏覽器彈出驗證視窗時，輸入您的代理帳號名與密碼。

設定完成後，造訪[https://ipinfo.thordata.com](https://ipinfo.thordata.com/)驗證目前 IP 是否已變更為代理 IP。如需更多第三方整合工具的教學，您可存取整合教學。

回應

<figure><img src="/files/d76xqQX7kOwvijqI9Ihg" alt=""><figcaption></figcaption></figure>

## &#x20;程式碼請求

以 Python 為例，使用者只需輸入 {帳號名}:{密碼}{代理伺服器} 即可使用。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)
```

回應

<figure><img src="/files/zj64T7JI3JmD99XlPvmO" alt=""><figcaption></figcaption></figure>

## 共享代理專用參數（URL 拼接）

只有共享代理支援透過連接字串中的參數指定詳細位置與工作階段規則。程式碼範例：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"
```

| 查詢參數      | 說明                                       |
| --------- | ---------------------------------------- |
| username  | 代理帳號名                                    |
| host      | 主機名                                      |
| continent | 大洲；隨機區域無此參數                              |
| country   | 國家 / 地區；隨機區域無此參數（使用 2 字母國家代碼）            |
| state     | 州；隨機區域無此參數                               |
| city      | 您想要指定的城市；可在不使用「state」參數的情況下使用            |
| session   | 固定 IP 與 IP 切換時需要；用於固定 IP 或切換 IP 時尋找特定 IP |
| sessTime  | 與 session 一起使用以設定 IP 時長，最多 90 分鐘         |
| password  | 代理帳號密碼                                   |
| asn       | 指定國家的 ISP；隨機區域無此參數                       |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/zh-hk/dai-li/shu-ju-zhong-xin-dai-li/fa-song-qing-qiu.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.
