Resources
Basis
Basis
curl http://my.urlGet HTTP Content.
Flags
-sSilent (do not print curl info).
-iShow response Headers.
-LFollow redirections.
-kIgnore HTTPS Errors.
--tls-max 1.2Set the maximum TLS version.
-u admin:adminProvide Credentials.
-H 'myHeader: myValue'Set Header.
-X POSTSpecifies method.
-dPOST data.
-o myFileSave response in a file.
Examples
GET Request with JWT
curl 'http://[TARGET_IP]/api/book/1' \-H 'Authorization: Bearer [JWT_TOKEN]'Example GET request with JWT.
POST Request with JSON Content
curl 'http://[TARGET_IP]/api/auth/login' \-X POST \-H "Content-Type: application/json" \-d '{"username":"User","password":"P@ssw0rd"}'Example POST request with JSON content.