For the complete documentation index, see llms.txt. This page is also available as Markdown.

協定

您的使用場景決定了最適合的協定。以下 cURL 範例可協助您在整合代理前驗證連線是否正常。

lightbulb-exclamation-on


HTTP

適用於大多數日常使用場景,無需加密連線時選擇此協定。

curl -x http://username:password@host:port https://ipinfo.io

HTTPS

當您需要客戶端與代理伺服器之間的連線加密時,使用HTTPS協定。

curl -x https://username:password@host:port https://ipinfo.io

SOCKS5

通用代理協定,適合聊天應用、遊戲客戶端等非HTTP程式。

curl -x socks5h://username:password@host:port https://ipinfo.io
lightbulb-exclamation-on


驗證代理

上述命令成功執行時,ipinfo.io 會回傳請求來源的 IP 位址及其他資訊。

輸出範例:

最后更新于