返回顶部
j

jrv-http-client

Make HTTP requests from the command line with support for auth (Bearer, Basic, API key), custom headers, JSON/form body, response formatting, timing, and history logging. A curl replacement with agent-friendly output.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
129
下载量
0
收藏
概述
安装方式
版本历史

jrv-http-client

# jrv-http-client A developer-friendly HTTP client for agents and scripts. Supports all HTTP methods, authentication, request bodies, pretty-printed responses, timing, and request history — all without needing curl flags memorized. ## Quick Start ```bash # Simple GET request python3 scripts/http_client.py GET https://httpbin.org/get # POST with JSON body python3 scripts/http_client.py POST https://httpbin.org/post --json '{"name": "test"}' # POST with form data python3 scripts/http_client.py POST https://httpbin.org/post --form "name=test&value=42" # PUT request python3 scripts/http_client.py PUT https://api.example.com/users/1 --json '{"role": "admin"}' # DELETE request python3 scripts/http_client.py DELETE https://api.example.com/users/1 # Bearer token auth python3 scripts/http_client.py GET https://api.example.com/me --bearer "mytoken123" # Basic auth python3 scripts/http_client.py GET https://api.example.com/data --auth "user:password" # API key header python3 scripts/http_client.py GET https://api.example.com/data --api-key "X-API-Key:abc123" # Custom headers python3 scripts/http_client.py GET https://api.example.com/ --header "Accept: application/json" --header "X-App: myapp" # Follow redirects python3 scripts/http_client.py GET https://example.com/ --follow # Show only status code python3 scripts/http_client.py GET https://api.example.com/health --status-only # Output response to file python3 scripts/http_client.py GET https://example.com/data.json --output response.json # Timeout python3 scripts/http_client.py GET https://slow.api.example.com/ --timeout 10 # Show request timing python3 scripts/http_client.py GET https://httpbin.org/get --timing # Output as JSON (for scripting) python3 scripts/http_client.py GET https://httpbin.org/get --output-json ``` ## Commands | Option | Description | |--------|-------------| | `GET/POST/PUT/DELETE/PATCH/HEAD` | HTTP method | | `<url>` | Target URL | | `--json <body>` | JSON request body (sets Content-Type: application/json) | | `--form <data>` | Form-encoded body (key=value&key2=val2) | | `--bearer <token>` | Bearer token Authorization header | | `--auth <user:pass>` | Basic auth | | `--api-key <Header:value>` | Custom API key header | | `--header <H: V>` | Add custom header (repeatable) | | `--follow` | Follow redirects (default: no) | | `--timeout N` | Request timeout in seconds (default: 30) | | `--status-only` | Print only the HTTP status code | | `--output <file>` | Save response body to file | | `--output-json` | Output full response as JSON (status, headers, body, timing) | | `--timing` | Show request/response timing | | `--no-verify` | Skip TLS certificate verification | | `--verbose` | Show request headers sent | ## Response Format By default, responses are pretty-printed: - JSON responses are syntax-highlighted and indented - Other responses show raw text - Status line and response headers are always shown ## Exit Codes - `0` — HTTP 2xx response - `1` — HTTP 4xx/5xx response - `2` — Network error, timeout, or usage error ## Use Cases - **API testing**: Quick endpoint checks without Postman - **Health monitoring**: Check if an API returns 200 - **Auth testing**: Test Bearer/Basic/API key auth flows - **Webhook debugging**: Send test payloads to webhook endpoints - **CI scripts**: Trigger API actions or check health in pipelines

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 jrv-http-client-1776191822 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 jrv-http-client-1776191822 技能

通过命令行安装

skillhub install jrv-http-client-1776191822

下载 Zip 包

⬇ 下载 jrv-http-client v1.0.0

文件大小: 5.39 KB | 发布时间: 2026-4-17 15:08

v1.0.0 最新 2026-4-17 15:08
Initial release of jrv-http-client — a command-line HTTP client aimed at being a curl replacement with cleaner, agent-friendly output.

- Supports all HTTP methods, authentication (Bearer, Basic, API key), custom headers, JSON/form body.
- Provides pretty-printed responses, status/timing display, and request history logging.
- Flexible output options: save to file, output as JSON, status-only mode.
- Features for scripting and automation: exit codes, timeout, TLS skip, verbose mode.
- Designed for ease of use in API testing, auth testing, monitoring, and CI scripts.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部