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"}' +