curl-http
Essential curl commands for HTTP requests, API testing, and file transfers.
Best use case
curl-http is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Essential curl commands for HTTP requests, API testing, and file transfers.
Teams using curl-http should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/curl-http/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How curl-http Compares
| Feature / Agent | curl-http | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Essential curl commands for HTTP requests, API testing, and file transfers.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
SKILL.md Source
# curl - HTTP Client
Command-line tool for making HTTP requests and transferring data.
## Basic Requests
### GET requests
```bash
# Simple GET request
curl https://api.example.com
# Save output to file
curl https://example.com -o output.html
curl https://example.com/file.zip -O # Use remote filename
# Follow redirects
curl -L https://example.com
# Show response headers
curl -i https://example.com
# Show only headers
curl -I https://example.com
# Verbose output (debugging)
curl -v https://example.com
```
### POST requests
```bash
# POST with data
curl -X POST https://api.example.com/users \
-d "name=John&email=john@example.com"
# POST JSON data
curl -X POST https://api.example.com/users \
-H "Content-Type: application/json" \
-d '{"name":"John","email":"john@example.com"}'
# POST from file
curl -X POST https://api.example.com/users \
-H "Content-Type: application/json" \
-d @data.json
# Form upload
curl -X POST https://api.example.com/upload \
-F "file=@document.pdf" \
-F "description=My document"
```
### Other HTTP methods
```bash
# PUT request
curl -X PUT https://api.example.com/users/1 \
-H "Content-Type: application/json" \
-d '{"name":"Jane"}'
# DELETE request
curl -X DELETE https://api.example.com/users/1
# PATCH request
curl -X PATCH https://api.example.com/users/1 \
-H "Content-Type: application/json" \
-d '{"email":"newemail@example.com"}'
```
## Headers & Authentication
### Custom headers
```bash
# Add custom header
curl -H "User-Agent: MyApp/1.0" https://example.com
# Multiple headers
curl -H "Accept: application/json" \
-H "Authorization: Bearer token123" \
https://api.example.com
```
### Authentication
```bash
# Basic auth
curl -u username:password https://api.example.com
# Bearer token
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://api.example.com
# API key in header
curl -H "X-API-Key: your_api_key" \
https://api.example.com
# API key in URL
curl "https://api.example.com?api_key=your_key"
```
## Advanced Features
### Timeouts & retries
```bash
# Connection timeout (seconds)
curl --connect-timeout 10 https://example.com
# Max time for entire operation
curl --max-time 30 https://example.com
# Retry on failure
curl --retry 3 https://example.com
# Retry delay
curl --retry 3 --retry-delay 5 https://example.com
```
### Cookies
```bash
# Send cookies
curl -b "session=abc123" https://example.com
# Save cookies to file
curl -c cookies.txt https://example.com
# Load cookies from file
curl -b cookies.txt https://example.com
# Both save and load
curl -b cookies.txt -c cookies.txt https://example.com
```
### Proxy
```bash
# Use HTTP proxy
curl -x http://proxy.example.com:8080 https://api.example.com
# With proxy authentication
curl -x http://proxy:8080 -U user:pass https://api.example.com
# SOCKS proxy
curl --socks5 127.0.0.1:1080 https://api.example.com
```
### SSL/TLS
```bash
# Ignore SSL certificate errors (not recommended for production)
curl -k https://self-signed.example.com
# Use specific SSL version
curl --tlsv1.2 https://example.com
# Use client certificate
curl --cert client.crt --key client.key https://example.com
# Show SSL handshake details
curl -v https://example.com 2>&1 | grep -i ssl
```
## Response Handling
### Output formatting
```bash
# Silent mode (no progress bar)
curl -s https://api.example.com
# Show only HTTP status code
curl -s -o /dev/null -w "%{http_code}" https://example.com
# Custom output format
curl -w "\nTime: %{time_total}s\nStatus: %{http_code}\n" \
https://example.com
# Pretty print JSON (with jq)
curl -s https://api.example.com | jq '.'
```
### Range requests
```bash
# Download specific byte range
curl -r 0-1000 https://example.com/large-file.zip
# Resume download
curl -C - -O https://example.com/large-file.zip
```
## File Operations
### Downloading files
```bash
# Download file
curl -O https://example.com/file.zip
# Download with custom name
curl -o myfile.zip https://example.com/file.zip
# Download multiple files
curl -O https://example.com/file1.zip \
-O https://example.com/file2.zip
# Resume interrupted download
curl -C - -O https://example.com/large-file.zip
```
### Uploading files
```bash
# FTP upload
curl -T file.txt ftp://ftp.example.com/upload/
# HTTP PUT upload
curl -T file.txt https://example.com/upload
# Form file upload
curl -F "file=@document.pdf" https://example.com/upload
```
## Testing & Debugging
### API testing
```bash
# Test REST API
curl -X GET https://api.example.com/users
curl -X GET https://api.example.com/users/1
curl -X POST https://api.example.com/users -d @user.json
curl -X PUT https://api.example.com/users/1 -d @updated.json
curl -X DELETE https://api.example.com/users/1
# Test with verbose output
curl -v -X POST https://api.example.com/login \
-H "Content-Type: application/json" \
-d '{"username":"test","password":"pass"}'
```
### Performance testing
```bash
# Measure request time
curl -w "Total time: %{time_total}s\n" https://example.com
# Detailed timing
curl -w "\nDNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTLS: %{time_appconnect}s\nTransfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" \
-o /dev/null -s https://example.com
```
### Common debugging
```bash
# Show request and response headers
curl -v https://api.example.com
# Trace request
curl --trace-ascii trace.txt https://api.example.com
# Include response headers in output
curl -i https://api.example.com
```
## Common Patterns
**Quick JSON API test:**
```bash
curl -s https://api.github.com/users/octocat | jq '{name, bio, followers}'
```
**Download with progress bar:**
```bash
curl -# -O https://example.com/large-file.zip
```
**POST JSON and extract field:**
```bash
curl -s -X POST https://api.example.com/login \
-H "Content-Type: application/json" \
-d '{"user":"test","pass":"secret"}' | jq -r '.token'
```
**Check if URL is accessible:**
```bash
if curl -s --head --fail https://example.com > /dev/null; then
echo "Site is up"
else
echo "Site is down"
fi
```
**Parallel downloads:**
```bash
for i in {1..10}; do
curl -O https://example.com/file$i.jpg &
done
wait
```
## Useful Flags
- `-X`: HTTP method (GET, POST, PUT, DELETE, etc.)
- `-d`: Data to send (POST/PUT)
- `-H`: Custom header
- `-o`: Output file
- `-O`: Save with remote filename
- `-L`: Follow redirects
- `-i`: Include headers in output
- `-I`: Headers only
- `-v`: Verbose output
- `-s`: Silent mode
- `-S`: Show errors even in silent mode
- `-f`: Fail silently on HTTP errors
- `-k`: Insecure (ignore SSL)
- `-u`: Basic authentication
- `-F`: Multipart form data
- `-b`: Send cookies
- `-c`: Save cookies
- `-w`: Custom output format
## Tips
- Use `-s` in scripts to suppress progress bar
- Combine `-sS` for silent but show errors
- Use `-L` for redirects (e.g., shortened URLs)
- Add `-v` for debugging
- Use `jq` to process JSON responses
- Save common requests as shell aliases or scripts
- Use `--config` for complex reusable requests
## Documentation
Official docs: https://curl.se/docs/
Manual: `man curl`
HTTP methods: https://developer.mozilla.org/en-US/docs/Web/HTTP/MethodsRelated Skills
amap-maps-streamableHTTP
Auto-generated skill for amap-maps-streamableHTTP tools via OneKey Gateway.
HTTP 重试技能
**触发词**: timeouterror, econnreset, econnrefused, 429, retry, http error, 网络超时
---
name: article-factory-wechat
humanizer
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
tavily-search
Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.
baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
agent-autonomy-kit
Stop waiting for prompts. Keep working.
Meeting Prep
Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.
self-improvement
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.
botlearn-healthcheck
botlearn-healthcheck — BotLearn autonomous health inspector for OpenClaw instances across 5 domains (hardware, config, security, skills, autonomy); triggers on system check, health report, diagnostics, or scheduled heartbeat inspection.
linkedin-cli
A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies.