How to send authentication header in ASP.Net for set of web request
I am developing ASP.net application which consumes REST services with ASP.Net Web API. I am trying to use Basic authentication for my website. I plan to use it with SSL once I complete Basic authentication. Currently on Login button click I am sending Auth header using Base64 encoding of username and password as shown below: string responseData = string.Empty; string authToken = string.Empty; string loginInstance = url; // Create request. HttpWebRequest request = (HttpWebRequest)WebRequest.Create(loginInstance); request.Method = "POST"; request.ContentType = "application/json"; request.CookieC
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.