hi i need to Screen scrape the smsze.com which required the login page. I need to scrape the page after login so what should i do..
code is as below
Can you tell me what to do... Pls give me example so that i can better understand. You can also mail me at <email snipped>
Thanks in advance.
code is as below
Code:
string url = "http://www.smsze.com/logingo.php";
WebRequest request = WebRequest.Create(url);
request.Method = "POST";
string postData = "mobile=9998471231&pass=xyz&Submit='Sign In'";
byte[] byteArray = Encoding.UTF8.GetBytes(postData);
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = byteArray.Length;
Stream dataStream = request.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);
dataStream.Close();
WebResponse response = request.GetResponse();
dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
richTextBox1.Text = responseFromServer;
Thanks in advance.
Comment