From f257ee738cddda29c09ac9adf5c9e67021220bbf Mon Sep 17 00:00:00 2001 From: mpabi Date: Thu, 10 Oct 2024 15:22:02 +0200 Subject: [PATCH] add post pwsh --- script/__curl | 10 ++++++++++ script/__pwsh | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 script/__curl create mode 100644 script/__pwsh diff --git a/script/__curl b/script/__curl new file mode 100644 index 0000000..c96e9c5 --- /dev/null +++ b/script/__curl @@ -0,0 +1,10 @@ +curl -X POST http://192.168.80.31:8080/p10.10/php/post.php \ +-H "Content-Type: application/json" \ +-d '{ + "ln": "Kowalski", + "fn": "Jan", + "email": "jan.kowalski@example.com", + "subject": "Test subject", + "path": "/path/to/photo.jpg" +}' + diff --git a/script/__pwsh b/script/__pwsh new file mode 100644 index 0000000..bf15d72 --- /dev/null +++ b/script/__pwsh @@ -0,0 +1,2 @@ +Invoke-RestMethod -Uri "http://192.168.80.31:8080/p10.10/php/post.php" -Method Post -ContentType "application/json" -Body '{"ln": "Kowalski", "fn": "Jan", "email": "jan.kowalski@example.com", "subject": "Test subject", "path": "/path/to/photo.jpg"}' +