28 July 2026

POST data to a web service

PowerShell to send 'username' and 'moredata' parameters via POST method to a web service:

$postParams = @{username='jsmith';moredata='qwerty'}

Invoke-WebRequest -Uri http://abc.example.com/Integrated/MyApp.WcfServices/AppAuthenticationService.svc -Method POST -Body $postParams

No comments:

Post a Comment