I’m struggling to write a Windows Service that accesses a website, logs in using stored credentials, and downloads the HTML to parse it. What do you think is the best way to go about this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you really have to do that (The webserver doesn’t provide a webservice), use the HttpWebRequest (http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx) and parse the HTML either with Regex or some html parsing lib.
Or WebClient, of course.