curl -X POST <url>
-H "Content-Type: application/x-www-form-urlencoded"
-d "key1=value1&key2=value2"
POST - JSON
curl -X POST <url>
-H 'Content-Type: application/json'
-d '{"field1":"value1","field2":"value2"}'
POST - Send File
curl -X POST <url> -d @<path to file>
curl -X POST <url> -F @<path to file> #as form encoded
curl -X POST <url> --data-binary @<path to file> #use this if file is corrupted
POST - Base Auth
curl -X POST <url> --user "<user>:<password>"
curl -X POST <url> -H "Authorization: Basic $(echo -n "<user>:<pass>" | base64)"
curl -X POST <url> -H "Authorization: Bearer <token>"
Testing parameters
SQL Injection
'"`) or 'a' = 1;
'"` or 1 = 1;
sleep(5)#
or sleep(5)#
;waitfor delay '0:0:5'--
" or pg_sleep(5)--