I have a c# client that is calling a webapi web service (iis 6). I am able to execute my web calls successfully from postman - No Authentication (Normal tab). The same call from the c# webclient fails.
Looking at the requests in fiddler I don't see a difference between the two.
Below is the request I am sending (postman and webclient) no headers are set.
https://store.isswerver.com/api/details/Users - Succeeds from postman client
Returns 401 using c# client
_client = new WebClient();
_client.Headers.Add("Content-Type", "application/json; charset=utf-8");
_client.Headers.Add("Accept", "application/json");
byte[] data = _client.DownloadData(string.Format("{0}/Users", _apiUrl));
The client does work if I run the website on my local machine.
What is different in the way postman is submitting the request?