curl
by BytesAgain
Send HTTP requests and test API endpoints using Python urllib. Use when you need to debug, test, or interact with web services.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain3/curl文档
Curl — HTTP Request Testing Tool
Curl is a command-line HTTP request tool built with Python's urllib module. It supports all major HTTP methods, file upload/download, custom headers, and maintains a history of all requests for debugging and replay.
Request history is stored in ~/.curl/data.jsonl as JSONL records.
Prerequisites
- Python 3.8+ with standard library
bashshell
Commands
get
Send an HTTP GET request.
Environment Variables:
URL(required) — Target URLHEADERS— JSON object of custom headers (e.g., '{"Authorization": "Bearer token"}')PARAMS— Query parameters as JSON objectTIMEOUT— Request timeout in seconds (default: 30)FOLLOW— Follow redirects:true/false(default: true)
Example:
URL="https://api.example.com/users" HEADERS='{"Accept":"application/json"}' bash scripts/script.sh get
post
Send an HTTP POST request.
Environment Variables:
URL(required) — Target URLBODY— Request body (JSON string or plain text)HEADERS— JSON object of custom headersCONTENT_TYPE— Content-Type header (default: application/json)TIMEOUT— Request timeout in seconds (default: 30)
Example:
URL="https://api.example.com/users" BODY='{"name":"John"}' bash scripts/script.sh post
put
Send an HTTP PUT request.
Environment Variables:
URL(required) — Target URLBODY— Request bodyHEADERS— JSON object of custom headersCONTENT_TYPE— Content-Type (default: application/json)
delete
Send an HTTP DELETE request.
Environment Variables:
URL(required) — Target URLHEADERS— JSON object of custom headers
head
Send an HTTP HEAD request (returns headers only).
Environment Variables:
URL(required) — Target URLHEADERS— JSON object of custom headers
options
Send an HTTP OPTIONS request to check allowed methods.
Environment Variables:
URL(required) — Target URL
upload
Upload a file via HTTP POST multipart/form-data.
Environment Variables:
URL(required) — Upload endpoint URLFILE(required) — Path to file to uploadFIELD— Form field name (default: file)HEADERS— JSON object of custom headers
download
Download a file from a URL.
Environment Variables:
URL(required) — File URL to downloadOUTPUT(required) — Local path to save fileHEADERS— JSON object of custom headers
headers
Display response headers from a request.
Environment Variables:
URL(required) — Target URLMETHOD— HTTP method (default: GET)
config
View or update configuration settings.
Environment Variables:
KEY— Configuration keyVALUE— Configuration value
history
View past request history.
Environment Variables:
LIMIT— Maximum entries to show (default: 20)METHOD— Filter by HTTP methodSTATUS— Filter by status codeSEARCH— Search in URLs
help
Display usage information and available commands.
version
Display the current version of the curl tool.
Data Storage
Request history stored in ~/.curl/data.jsonl. Each record contains:
id— Unique request identifiertimestamp— ISO 8601 timemethod— HTTP methodurl— Request URLstatus— Response status codeheaders_sent— Request headersheaders_received— Response headersbody_sent— Request body (truncated)body_received— Response body (truncated to 1KB)duration_ms— Request duration in millisecondserror— Error message if request failed
Configuration
Config stored in ~/.curl/config.json:
default_timeout— Default timeout seconds (default: 30)follow_redirects— Follow redirects by default (default: true)max_body_log— Max response body chars to log (default: 1024)default_headers— Default headers for all requestssave_history— Whether to save request history (default: true)
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
接口设计评审
by alirezarezvani
审查 REST API 设计是否符合行业规范,自动检查命名、HTTP 方法、状态码与文档覆盖,识别破坏性变更并给出设计评分,适合评审接口方案和版本迭代前把关。
✎ 做API和架构方案时,它能帮你提前揪出接口设计问题并对齐最佳实践,评审视角系统,团队协作更省心。
相关 MCP 服务
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。