> ## Documentation Index
> Fetch the complete documentation index at: https://help.ip2up.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CURL請求

<Tip>平台的所有代理產品均需要在海外網路環境下使用，海外網路環境需要客戶自行配置。</Tip>

本文展示如何使用 `curl` 透過Ip2up不限量住宅代理IP發起請求，適用於終端或腳本中直接調用代理連線。

<Note>不限量住宅IP的產品目前國家為平台隨機分配，若需定制需求，可透過平台與我們商務取得聯繫</Note>

## 參數解釋

|      名稱     |   類型   |  必填 | 備註                                   |
| :---------: | :----: | :-: | :----------------------------------- |
|   account   | string |  是  | 帳號：**後台的認證帳號**                       |
|   session   | string |  是  | 會話標識：後台生成                            |
| sessionTime |   int  |  是  | 會話時長 （分鐘） **0代表不固定會話**               |
|     flag    |   Int  |  是  | 會話期間自動補充節點（1-是 0-否）\| **會話時間不為0才生效** |

## 協議規範

```shell theme={null}

# 案例示範
規則：curl -x [protocol]://[ip]:[port] -U "[userName]:[password]" ipinfo.io
示例：curl -x http://192.168.46.222:12347 -U "op1233_rr123_1_1:hello123" ipinfo.io

# 案例示範

# 全球混播&不指定時長&不補充
curl -x [protocol]://[ip]:[port] -U "[account]_[session]_0_0:[password]" ipinfo.io

# 全球混播&指定時長&自動補充
curl -x [protocol]://[ip]:[port] -U "[account]_[session]_[sessionTime]_1:[password]" ipinfo.io

# 全球混播&指定時長&不自動補充
curl -x [protocol]://[ip]:[port] -U "[account]_[session]_[sessionTime]_0:[password]" ipinfo.io
```
