# 协议

### HTTP

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

### HTTPS

你还可以使用完全加密的连接通过以下方式连接到代理： `HTTPS` 协议。为此，你需要添加 `https://` 到您的代理入口点。例如： `https://dc.oxylabs.io:8000`

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

### SOCKS5

SOCKS5 协议支持这两种 `TCP` 和 `UDP` 连接。

要使用 `SOCKS5` 协议，您需要添加 `socks5h://` 到您的代理入口点。例如： `socks5h://dc.oxylabs.io:8000`

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


---

# 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/datacenter-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.
