Login to the site from the application

I would like to learn more about how to log in to a website from a window-shaped application

The site where I am trying to log in os z8games.com

I used RequestMaker from Google Chrome to get message information. The idea is to automatically get clan members data to have a good idea of ​​what is going on.

Can someone help me with this?

+4
source share
1 answer

When I tried to get the XML file from a website that required credentials, I used the following:

public static void GetFileWithCredentials(string userName, string password, string url) { using (WebClient wc = new WebClient()) { wc.Credentials = new NetworkCredential(userName, password); string xml = wc.DownloadString(url); XmlDocument tournamentsXML = new XmlDocument(); tournamentsXML.LoadXml(xml); } } 

Hope this will be helpful for you. If it weren’t possible to publish an example of what the data you are trying to get looks like? I would comment first, but my reputation doesn't seem to allow me!

+2
source

Source: https://habr.com/ru/post/1369492/


All Articles