add post pwsh

This commit is contained in:
mpabi 2024-10-10 15:22:02 +02:00
parent 530d1ae8ec
commit f257ee738c
2 changed files with 12 additions and 0 deletions

10
script/__curl Normal file
View File

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

2
script/__pwsh Normal file
View File

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