I am trying to read other website data using angular website with backend asp.net c#, other website has following login authentication after login need to read the data.
I have following authentical pages
- first page i have to enter username
https://i.stack.imgur.com/PgbLo.png
- second page i have to enter password then click login
https://i.stack.imgur.com/xAr4E.png
- after login it will redirect to home page which content information of person details
https://i.stack.imgur.com/2I4UX.png
I need to display third point page information Name, mobile, and address in my angular website.
Third page url will be looks like : www.xyz.com/1
the above 1 digit in the url is id of information base on id information of third page will appear
I found some code using c# but how to manage logins
System.Net.WebClient wc = new System.Net.WebClient();
byte[] raw = wc.DownloadData("http://www.yoursite.com/resource/file.htm");
string webData = System.Text.Encoding.UTF8.GetString(raw);
and other way
System.Net.WebClient wc = new System.Net.WebClient();
string webData =
wc.DownloadString("http://www.yoursite.com/resource/file.htm");
System.Net.WebClient wc = new System.Net.WebClient();