REST API Client using Console application with Windows Authentication

Jul 16 2021 5:54 AM

I want to consume REST Web API using Console application, I have done with that. I am seeing most of the ASP.Net (But I dont need this example)

I need only console application example with passing Windows credentials and getting response.

Only GET method, I am going to use.

I am not sure how to pass the Windows credentials (User name and Password). The Service side they have added my User name and Pssword to use Windows authentication.

But I want to use Windows authentication - I need to use ServiceID and Password to connect to the Services.and get the data.

ServiceID: Domain\SNSVRSystem

Pwd: Password123

I need to pass this and get connected to the SErvice and retrive the data.

Please help, if anyone done with same example.


Answers (2)