Skip to content
curl logo

curl — Handy Examples

curl

HTTP client examples including download, POST, auth, JSON, headers, proxy, and FTP operations.

SKILL.md

Full skill instructions

curl — Handy Examples

Download Files

# Download a file and save with original filename
curl -O http://example.com/​file.txt

# Download a file with specific name
curl -o filename.ext http://example.com/​file.txt

# Download and limit speed
curl --limit-rate 100K -O http://example.com/​largefile.zip

# Resume interrupted download
curl -C - -O http://example.com/​largefile.zip

# Download multiple files
curl -O http://example.com/​file1.txt -O http://example.com/​file2.txt

# Download all sequentially numbered files (1-24)
curl http://example.com/​pic[1-24].jpg

HTTP Methods & Data

# POST data
curl -d "name=value" http://example.com/​resource

# POST JSON data
curl -H "Content-Type: application/​json" -d '{"key":"value"}' http://example.com/​resource

# Send URL-encoded data
curl --data-urlencode "key=value" http://example.com/​resource

# Custom HTTP method
curl -X PUT http://example.com/​resource
curl -X DELETE http://example.com/​resource

Headers & Authentication

# Include headers in output
curl -i http://example.com

# Show only HTTP headers
curl -I http://example.com

# Custom header
curl -H "Custom-Header: Value" http://example.com

# Basic authentication
curl -u username:password http://example.com

# Save response headers to file
curl -D headers.txt http://example.com

Proxy & Advanced

# Use proxy
curl -x http://proxy-server:port http://example.com

# Get HTTP status code only
curl -o /​dev/​null -w '%{http_code}\n' -s -I URL

# Get external IP as JSON
curl http://ifconfig.me/​all.json

# Follow redirects
curl -L http://example.com

# Download and pipe to grep
curl http://example.com/​file.txt | grep "search-string"

FTP Operations

# Upload file via FTP
curl -T localfile.txt ftp://ftp.example.com/​upload/

# Download via FTP with auth
curl -u username:password -O ftp://example.com/​pub/​file.zip

# List FTP directory
curl ftp://username:[email protected]

Original Examples

curl --resolve example.com:443:127.0.0.1 https://example.com
curl --output example.html "https://example.com/"
curl --header "PRIVATE-TOKEN: ?" https://example.com/
curl --basic --user 'test:test' https://example.com/
curl -fsSL https://example.com/​install.sh | sh
curl --ftp-ssl --user "test:test" -l sftp://example.com:22/ --key ./​id_rsa --pubkey ./​id_rsa.pub
curl --request POST --data "A=B&C=D" https://example.com
curl --request POST --form "A=B" --form "C=D" https://example.com
curl --upload-file test.txt https://example.com
curl --ftp-ssl --user test:test -l ftp://example.com:21

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View