> For the complete documentation index, see [llms.txt](https://docs.helodata.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.helodata.com/helodata-zh/chan-pin/overview-1/protocols.md).

# 协议

移动产品支持的协议与住宅相同——`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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.helodata.com/helodata-zh/chan-pin/overview-1/protocols.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
