home / skills / aidotnet / moyucode / http-client
This skill enables you to make HTTP requests across methods with headers, authentication, and response handling to test and interact with APIs.
npx playbooks add skill aidotnet/moyucode --skill http-clientReview the files below or copy the command above to add this skill to your agents.
---
name: http-client
description: 发送HTTP请求,支持所有方法、请求头、认证和响应处理。
metadata:
short-description: HTTP请求客户端
source:
repository: https://github.com/psf/requests
license: Apache-2.0
---
# HTTP Client Tool
## Description
Make HTTP requests with full support for GET, POST, PUT, DELETE, headers, authentication, and file uploads.
## Trigger
- `/http` command
- User needs to make API calls
- User wants to test endpoints
## Usage
```bash
# GET request
python scripts/http_client.py GET https://api.example.com/users
# POST with JSON body
python scripts/http_client.py POST https://api.example.com/users --json '{"name": "John"}'
# With headers
python scripts/http_client.py GET https://api.example.com/data --header "Authorization: Bearer token"
# Upload file
python scripts/http_client.py POST https://api.example.com/upload --file document.pdf
```
## Tags
`http`, `api`, `rest`, `requests`, `client`
## Compatibility
- Codex: ✅
- Claude Code: ✅
This skill is an HTTP client that sends requests with full support for GET, POST, PUT, DELETE and other methods. It accepts custom headers, authentication, JSON bodies, form data and file uploads, then returns status, headers and response body for inspection. It is implemented in TypeScript and designed for scripting and interactive API testing.
You provide method, URL and optional parameters (headers, auth, JSON, form fields, files). The client constructs the HTTP request, attaches authentication and headers, encodes body (JSON or multipart), sends the request, and captures the response status, headers and body. It also exposes error details and HTTP-level diagnostics for debugging failed calls.
Which HTTP methods are supported?
All common methods are supported, including GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS.
How do I upload files?
Send files as multipart/form-data along with other form fields. The client will encode file parts and set appropriate boundaries.