Quote:
in postman parameters Body set to
...
application/json; charset=utf-8
...
new StringContent(... "application/raw");
Your C# code is sending a content type of
application/raw
, which doesn't match the content type sent in your Postman request.
The API you're calling doesn't understand how to process an
application/raw
body, so it will most likely return a "bad request" status.
Which you would know if you weren't swallowing all exceptions and throwing away the error details!