How do you get the same web response error message as Postman in VB?

Viewed 67

For example, I run a POST request in Postman that I know has an expired token and I get this: Postman error

In my Visual Studio project, I am building the same request, but the WebException object doesn't have any of the "TokenError" details, only "The remote server returned an error: (400) Bad Request."

So my question is: Is there a way to get the same error details in .NET as in Postman?

0 Answers
Related