add post pwsh
This commit is contained in:
parent
530d1ae8ec
commit
f257ee738c
|
@ -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"
|
||||||
|
}'
|
||||||
|
|
|
@ -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"}'
|
||||||
|
|
Loading…
Reference in New Issue