Cheatsheet: curl
Basic operations
Send a GET request to a URL
Send a POST request with data
Send a POST request with JSON data
Send a PUT request with data:
Send a DELETE request:
Send a request with a custom header
Send a request with Basic Authentication
Send a request and save the response to a file
Send a request and follow redirects
Send a request and display the response headers