W
webklip
webklip.com/
curl-examples
0 devices
Public
API
Share
Copy link
Show QR code
Share via apps
This public clip is view-only.
Content
Preview
# Practical curl examples ## GET / POST JSON curl https://httpbin.org/get curl -X POST https://httpbin.org/post \ -H "Content-Type: application/json" \ -d '{"name":"webklip"}' ## Auth & headers curl -H "Authorization: Bearer $TOKEN" https://api.example.com/me curl -u user:pass https://example.com/secret ## Save output / follow redirects curl -L -o page.html https://example.com curl -O https://example.com/file.zip ## Uploads curl -F "file=@./notes.txt" https://example.com/upload ## Debugging curl -v https://example.com # request/response headers curl -w "\nHTTP %{http_code} time %{time_total}s\n" -o /dev/null -s https://example.com ## Timouts curl --connect-timeout 5 --max-time 30 https://example.com Pro tip: add `-sS` for quiet output that still shows errors.
Editor
Files
Scan to open
webklip.com/
curl-examples
Developer docs
Open page
REST API
Webhooks
Loading documentation…