string strURL = "https://demo.tumblr.com"; WebClient wClient = new WebClient(); wClient.Encoding = System.Text.Encoding.ASCII; wClient.BaseAddress = strURL; //Read for the first time string strData = wClient.DownloadString("/api/read"); if (strData.StartsWith("<!DOCTYPE html>")) { var nvcAgree = new System.Collections.Specialized.NameValueCollection { {"btn_yes", "agree" } }; //Click on "Accept" and read the second time strData = Encoding.ASCII.GetString(wClient.UploadValues("/api/read", nvcAgree)); /* Here will be code to repeatedly open the website as the XML is limited to 50 entries */ this.textBox1.Text = strData; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)