curl -X GET -v http://localhost:8000/home
-X
to specify a HTTP method and -v
to display headers (verbose)
curl -X POST \
-H "Content-Type: application/json" \
-d '{"username":"xyz","password":"xyz"}' \
-v http://localhost:8000/home/create
-H
for headers, -d
for data (e.g. JSON or XML)
Top comments (0)