Relative Content

Tag Archive for c#restpostman.net-8.0

REST API request works from Postman but not from my app

I’m writing a simple test app in C# .NET8 to communicate with the DPD API. I’ve got a request which I’ve tested in Postman and it works fine (I get a 200 response with some data in the body) but when I send the same request in the C# app using the HttpClient I just get a 400 BadRequest with an empty ReasonPhrase.