Thursday, April 15, 2004

SCREEN SCRAPING
=================

HI Friends,
I am trying to screen scrap some values from a website that needs user login. I followed an article by Alex Lowe :http://authors.aspalliance.com/stevesmith/articles/netscrape2.asp .

But this doesn't seem to be working. Kindly help:I am posting source here, if you can find out the error somewhere

void Page_Load(Object Src, EventArgs E)
{
myPage.Text=readHtmlPage("https://somewebsite.com/index.cfm");
}
private String readHtmlPage(string url)
{
String result = "";
String stufftopost = @"j_username=s&j_password=s";
StreamWriter myWriter = null;
HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
objRequest.Method = "POST";
objRequest.ContentLength = stufftopost.Length;
objRequest.ContentType = "application/x-www-form-urlencoded";
myWriter = new StreamWriter(objRequest.GetRequestStream());
myWriter.Write(stufftopost);
myWriter.Close();
HttpWebResponse objResponse =(HttpWebResponse)objRequest.GetResponse();
StreamReader sr = new StreamReader(objResponse.GetResponseStream());
result = sr.ReadToEnd();
sr.Close();
return result;
}

Saturday, April 10, 2004

.NET Remoting: Passing through the obstacles path from version 1.0 to 1.1

The Code Project - Illustrated GOF Design Patterns in C# Part I: Creational - C# Programming

Monday, April 05, 2004

sharing session between applications
============================

Single Sign-On Enterprise Security for Web Applications

Version control of SQL Server:-

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarsql7/html/sql7storprocvers.asp