# 协议

在配置代理时，重要的是要考虑最适合您需求的协议。有两种主要类型可用：HTTP/HTTPS和SOCKS5。每种协议都在其不同的端口上运行，并服务于不同的目的。我们提供两种常见的代理协议类型。

{% hint style="warning" %}
请注意，我们的住宅代理与**TCP**连接兼容。
{% endhint %}

### HTTP/HTTPS

这是应用最为广泛的网页浏览协议。我们的HTTP代理是访问网站和管理基于Web的流量的理想选择。为了增强安全性，特别是在处理敏感数据时，我们的HTTPS代理添加了一个加密层来保护客户端和服务器之间的数据传输。这些代理通常在为HTTP或HTTPS通信明确指定的端口上运行。

### SOCKS5

对于一个更通用的解决方案，我们的SOCKS5代理可处理所有类型的流量，而不仅仅局限于网页浏览。这使得它们特别适合P2P共享和VoIP呼叫等活动。SOCKS5代理提供了改进的性能和安全特性，并且与HTTP/HTTPS使用的端口不同，可以适应更广泛的流量类型。

{% hint style="info" %}
在稍后的“提出请求”一节中，我们将详细了解如何有效地使用这些协议。
{% 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://docs.iproyal.com/cn/dai-li/huang-jia-zhu-zhai-dai-li/dai-li/xie-yi.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.
