# 代理协议

NetNut 代理支持 HTTP/HTTPS/SOCKS5 协议：

**HTTP**

文档中的代码示例使用 HTTP 协议，大多数代码库和第三方软件都支持该协议。

**HTTPS**

为了通过完全加密的连接增加安全性，您可以通过将 https\:// 添加到代理网关来使用 HTTPS 协议，例如：

curl-x 用户名-res-any:密码@<https://gw.netnut.net:5959> "example.site.com"

注意：某些代码库和第三方工具可能不支持 HTTPS 协议。

**SOCKS5**

要使用SOCKS5协议，请将socks5h添加到代理网关，例如：

curl -x socks5://用户名-res-any:代理密码@gw\.netnut.net:9595 "example.site.com"

注意：某些网站在使用 SOCKS5 协议可能会识别代理 IP。

#### &#x20;默认代理端口

| **端口** | **协议** |
| ------ | ------ |
| 80     | HTTP   |
| 443    | HTTPS  |
| 9595   | SOCKS5 |

&#x20;


---

# 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://help.netnut.io/netnut-documentation/netnut-documentation-chn/netnut-dai-li/dong-tai-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.
