curl is 25 years old!
Check out this blog post by curl’s creator and maintainer Daniel Stenberg. The good old curl we all know and love.
Let’s have some fun with curl while we’re celebrating.
Here’s an extensive cURL cheat sheet in table format:
Command | Description |
---|---|
curl URL | Basic cURL request to fetch a webpage or resource |
curl -o output.html URL | Save the output to a file named ‘output.html’ |
curl -O URL | Save the output with the original filename |
curl -L URL | Follow redirects (HTTP 3xx) |
curl -I URL | Show only response headers |
curl -u user:password URL | Basic authentication with username and password |
curl -d "param1=value1¶m2=value2" URL | Send a POST request with data as key-value pairs |
curl -F "file=@/path/to/file" URL | Upload a file using a POST request |
curl -X PUT -d "data" URL | Send a PUT request with data |
curl -X DELETE URL | Send a DELETE request |
curl -H "Header-Name: value" URL | Add a custom header to the request |
curl --cookie "name=value" URL | Send a cookie with the request |
curl --cookie-jar cookies.txt URL | Save cookies to a file named ‘cookies.txt’ |
curl --cookie cookies.txt URL | Use cookies from a file named ‘cookies.txt’ |
curl --proxy http://proxy.example.com:8080 URL | Use a proxy server for the request |
curl --proxy-user user:password URL | Proxy server authentication with username and password |
curl --limit-rate 200K URL | Limit the transfer rate to 200 kilobytes per second |
curl --compressed URL | Request a compressed response |
curl --verbose URL | Display detailed request and response information |
curl --silent URL | Hide progress meter and error messages |
curl --insecure URL | Skip SSL certificate verification (not recommended) |
curl --interface eth0 URL | Bind the request to a specific network interface (e.g., eth0) |
{
"seed": 7208147,
"used_random_seed": true,
"negative_prompt": "",
"num_outputs": 1,
"num_inference_steps": 50,
"guidance_scale": 7.5,
"width": 512,
"height": 512,
"vram_usage_level": "balanced",
"use_stable_diffusion_model": "Dreamshaper_3.32_baked_vae_clip_fix",
"use_vae_model": "",
"stream_progress_updates": true,
"stream_image_progress": false,
"show_only_filtered_image": true,
"block_nsfw": false,
"output_format": "jpeg",
"output_quality": 75,
"metadata_output_format": "none",
"original_prompt": "curl cli dancing with http protocol, photorealistic, futuristic, from below, black emptiness, running terminal",
"active_tags": [],
"inactive_tags": [],
"sampler_name": "euler_a",
"use_upscale": "RealESRGAN_x4plus",
"upscale_amount": "4",
"prompt": "curl cli dancing with http protocol, photorealistic, futuristic, from below, black emptiness, running terminal",
"use_cpu": false
}