# 协议

### HTTP

我们的文档包含代码示例，展示如何使用 `HTTP` 协议连接到代理。该协议受常见库和第三方软件支持。

### HTTPS

你也可以使用完全加密的连接，通过 `HTTPS` 协议来额外提升一层安全性。为此，你需要在代理入口地址前添加‘https\://’。例如： `https://isp.oxylabs.io:8001`

<pre class="language-sh"><code class="lang-sh"><strong>curl -x https://isp.oxylabs.io:8000 -U user-USERNAME:PASSWORD https://ip.oxylabs.io/location 
</strong></code></pre>

### SOCKS5

Oxylabs ISP代理支持 `TCP` 和 `UDP` 连接。

要使用 `SOCKS5` 协议，你需要添加 `socks5h://` 到你的代理入口地址。例如： `socks5h://isp.oxylabs.io:8001`

```bash
curl -x socks5h://user-USERNAME:PASSWORD@isp.oxylabs.io:8000 https://ip.oxylabs.io/location
```

{% hint style="info" %}
请注意，某些网站在使用 `SOCKS5` 协议时可能会识别出代理 IP。在这种情况下，我们强烈建议切换到其他协议。
{% endhint %}


---

# 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://developers.oxylabs.io/products/cn/dai-li/isp-proxies/protocols.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.
