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 |
|
ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.