Created
April 27, 2022 06:13
-
-
Save magohl/b73c3ed898db4e05367f73b4d7a9af5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$request = @{ | |
Uri = 'http://localhost/SuperImportant/service.svc' | |
Method = 'POST' | |
Body = '{ | |
"name": "testing", | |
"prio": "24"}' | |
ContentType = 'application/json' | |
} | |
while (1) | |
{ | |
$response = Invoke-RestMethod @request | |
Write-Output $response | |
Start-Sleep -s 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment