Index of every page on this site: llms.txt
All skills
Run it yourself

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

Use this Skill: https://skilld.dev/gh/jyasuu/cheat-sheet/curl

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈25 tokens for metadata: the name and description. ≈648 when used: this file.

Description uses 1.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈101 characters, or 1.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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:password@example.com

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

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 alerts7mo3 checks · Risk CRITICAL
  • Gen Agent Trust Hub7mo

    The skill includes a dangerous command pattern that downloads and executes a script directly from an external URL into the shell. It also contains examples that access sensitive private SSH keys from the local file system.

  • Socket7mo

    No alerts

  • Snyk7mo

    Risk: CRITICAL · 3 issues

Signed by skilld at d3e2684. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 10 months ago

README badge

README badge for jyasuu/cheat-sheet/curl