Mert Ilis
1 min readMay 6, 2020

--

Hi Adil, you can make use of -Body parameter:

Invoke-WebRequest -Headers @{"Authorization" = "Basic ???"} -ContentType application/json -Method POST -Uri https://???/task/sample -Body (@{"param1"="value";}|ConvertTo-Json)

Please inform if it works for you.

--

--

Mert Ilis
Mert Ilis

Written by Mert Ilis

I’m a software development enthusiast who likes trying different web technologies and adding value to his team.

No responses yet