# 协议

移动产品支持的协议与住宅相同——`7777` 端口同时支持 HTTP、HTTPS、SOCKS5，由客户端握手自动识别。curl/Python/Node 完整示例以及 SOCKS5 DNS 泄露提示见 [住宅协议](/helodata-zh/chan-pin/overview/protocols.md)。

## 移动特有提示

* **连接复用更重要。** 移动首跳延迟高，复用 TCP/TLS 连接（HTTP keep-alive、HTTP/2 多路复用）能显著提升吞吐。
* **到目标的 HTTP/2** 可通过 SOCKS5 / `CONNECT` 隧道工作，helodata 不剥离、不降级。
* **WebSocket 可用**，走标准 `CONNECT` 或 SOCKS5 升级。适合需要移动网络的聊天应用与实时 API。
* **移动运营商透明代理**可能改写 HTTP 头（如加 `Via`、`X-Forwarded-For`），helodata 不剥离——目标看到的与运营商一致。用 HTTPS 可避免改写。

## 快速参考

```bash
# HTTP/HTTPS
curl -x http://helo_s1a2b3c4d5e-type-mob-region-us-asn-6167:PASSWORD@gate.helodata.io:7777 \
     https://example.com

# SOCKS5（注意 socks5h:// 才远端解析）
curl --socks5-hostname helo_s1a2b3c4d5e-type-mob-region-us-asn-6167:PASSWORD@gate.helodata.io:7777 \
     https://example.com
```

## 移动场景如何选

| 场景               | 推荐                              |
| ---------------- | ------------------------------- |
| 原生 HTTP 采集       | HTTP/HTTPS                      |
| 模拟 HTTP/2 移动 App | HTTP/HTTPS                      |
| 长连接 WebSocket    | HTTP/HTTPS (`CONNECT`) 或 SOCKS5 |
| 单请求开销更低          | SOCKS5                          |
| 用 mitmproxy 调试   | HTTP/HTTPS                      |


---

# 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.helodata.com/helodata-zh/chan-pin/overview-1/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.
