WebClient accessing page with credentials
I am trying to access a webpage on a same domain / same asp.net application, that is password protected. Credentials are the same both for webpage firing this call and webpage being accessed.
I am trying to access a webpage on a same domain / same asp.net application, that is password protected. Credentials are the same both for webpage firing this call and webpage being accessed.
I have a working WEB API that I wrote, and I added basic authentication to the API (username is “testing”, password is “123456”). However, when trying to call that API from my web form, I keep getting the “(401) Unauthorized” message. What should I change in the web code to call the API successfully?
I created my first website in ASP.Net and I am trying to get it up and running on our intranet here at work. I have got almost everything completed now, and I have come to a roadblock.