From 9c19e1d8fd099da73b2e32b27b9c697f9226773e Mon Sep 17 00:00:00 2001 From: scbj Date: Thu, 2 Oct 2025 15:06:58 +0200 Subject: [PATCH] (curl) added file --- curl.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 curl.md diff --git a/curl.md b/curl.md new file mode 100644 index 0000000..4f6f585 --- /dev/null +++ b/curl.md @@ -0,0 +1,11 @@ +# curl + +# sending HTTP requests + +```sh +# example of a GET request on topic `/status` +curl -X GET 127.0.0.1:8080/status + +# example of a POST request with json data +curl -X POST -H "Content-Type: application/json" --data "$(cat ~/repositories/test-projects/rust/test-description.json)" 127.0.0.1:8080/start_test +```