macOS
brew install h2clocal Homebrew formula metadata
安装
brew install h2clocal Homebrew formula metadata
概览
Headers 2 curl
历史
h2c is a small curl-adjacent utility whose name means headers to curl. It reads an HTTP request, including headers and body, and emits an equivalent curl command line.
The official repository was created under the curl GitHub organization in August 2017. Its README defines the project narrowly: given a set of HTTP request headers, h2c outputs the curl command line needed to generate that request.
Adoption is intentionally modest and developer-tool focused. The project has an official curl.se web surface plus a Homebrew formula, making it easy for curl users to install when they need to translate captured HTTP requests into repeatable CLI invocations.
The README examples cover HTTP/1.1 and HTTP/2 requests, PUT bodies, multipart form uploads, cookies, user agents, and Basic authentication. The tool is useful when moving from a raw request captured in logs, browser tools, or documentation into a shell-friendly curl command.
h2c is package-nerd smallness in pure form: a single-purpose converter maintained near curl, valuable because it removes quoting and flag-selection friction without becoming a general HTTP client.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
h2c | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:h2c |
|---|---|
| 版本 | 1.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/h2c |
| 主页 | https://curl.se/h2c/ |
| 仓库 | https://github.com/curl/h2c |
| 上游文档 | https://curl.se/h2c |
| 许可证 | MIT |
| 源码归档 | https://github.com/curl/h2c/archive/refs/tags/1.0.tar.gz |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | h2c |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.