Bootstrap
<FreeKB>
Home
About
Walkthroughs
Curl
Profile
Sign in
FreeKB Articles
Curl articles
API Key
Connect to a REST API with an API Key
Bearer Token
Connect to a REST API with an OAuth Bearer Token
Config File
Include option from a file using the -K or --config option
Delete
Delete a resource using the -X or --request DELETE option
Download
Download a remote file
FTP
Connect to an FTP or SFTP server using cURL
GET
Display a resource using the -X or --request GET option
Headers
Display request and response headers
JSON
Parse JSON using Python
POST
POST to a REST API
Proxy
Use a proxy server
PUT
Upload file using the -T or --upload-file option
Redirect
Follow a 302 redirect using the -L or --location option
Return Code
Display HTTP return code using the -w or --write-out "%{http_code}" option
Show Errors
Display errors using the -S or --show-error flag
Silent
Hide progress bar using the -s or --silent flag
SSH
Specify SSH private key file using the --key and --pass options
SSL
Ignore SSL certificate warning using the -k or --insecure flag
View SSL certificate using CURL on Linux
Suppress Output
Suppress output using the -o or --output /dev/null option
Troubleshooting
Resolve "Connection reset by peer"
Resolve "curl: (35) SSL received a record that exceeded the maximum permissible length."
Resolve "HTTP Error 411 The request must be chunked or have a content length"
Username Password
Basic authentication using the -u or --user option