# http: 请求 URI 过长

- **ID:** `go/http-request-uri-too-long`
- **领域:** go
- **类别:** io_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

请求 URI 超过服务器允许的最大长度，通常为 8KB。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.19 | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   Use POST requests for long data instead of GET with long query strings.
   ```

## 无效尝试

- **** — This only affects headers, not the URI length. (60% 失败率)
- **** — The same URI will cause the same error. (80% 失败率)
