Get curl command example
curl --request GET http://example.com
Get curl command example with query string
curl --request GET http://example.com?key=value
Get curl command example with post
curl --request POST http://example.com
Get curl command example with put
curl --request PUT http://example.com
Get curl command example with delete
curl --request DELETE http://example.com
Get curl command example with patch
curl --request PATCH http://example.com
Get curl command example with xml
curl --request POST --header 'Content-Type: application/xml' --data '<key>value</key>' http://example.com
Get curl command example with json
curl --request POST --header 'Content-Type: application/json' --data '{"key":"value"}' http://example.com
Get curl command example with data
curl --request POST --header 'Content-Type: multipart/form-data' --form 'key=value' http://example.com
Get curl command example with download
curl --request GET --output file.txt http://example.com
Get curl command example with upload
curl --request POST --form 'file=@/path/to/file' http://example.com
Get curl command example with header
curl --request GET --header 'X-My-Header: 123' http://example.com
Get curl command example with cookie
curl --request GET --cookie 'key=value' http://example.com
Get curl command example with basic auth
curl --request GET --user 'username:password' http://example.com
Get curl command example with proxy
curl --request GET --proxy http://proxy.example.com:8080 http://example.com
Get curl command example with bearer auth
curl --request GET --header 'Authorization: Bearer token' http://example.com