Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3686

Sending post though Powershell curl

$
0
0

For some reason when request is sent through Swagger it goes through without any issuesenter image description here

But when I try to do the same thing with powershell I get 400

curl -Method Post -Uri "http://localhost:32774/WeatherForecast" -Headers @{ accept = '*/*';"Content-Type" ="application/json" } -Body "test"

enter image description here

What can I do to fix it?


Viewing all articles
Browse latest Browse all 3686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>