I need something like that for VS 2003. As much as I like VS, I hate the way MS uses upward compatibility. Basically all I want to do is learn how to programmatically fill in fields on a webpage from within my application.

Here I am attempting a login attempt on a website. (username text box = edit_username)
So far:

VB Code:
  1. Dim CookieContainer As New CookieContainer
  2. Dim strPost As String = "edit_username=my_username&edit_password=my_password"
  3. Dim myWriter As StreamWriter
  4. Dim objRequest As HttpWebRequest = CType(WebRequest.Create(uiURL.Text), HttpWebRequest)
  5. Dim cookies As CookieContainer = New CookieContainer
  6.   'objRequest.AllowWriteStreamBuffering = True
  7.    objRequest.Method = "POST"
  8.    objRequest.ContentType = "application/x-www-form-urlencoded"
  9.    objRequest.CookieContainer = cookies
  10.  
  11.    myWriter = New StreamWriter(objRequest.GetRequestStream())
  12.    myWriter.Write(strPost)
  13.    myWriter.Close()
  14.  
  15. Dim objResponse As HttpWebResponse = CType(objRequest.GetResponse(), HttpWebResponse)
  16. Dim str As StreamReader
  17.    str = New StreamReader(objResponse.GetResponseStream)
  18.    uiInfo.Text = str.ReadToEnd
  19.    myWriter.Close()
  20.  
  21.    objRequest.GetResponse().Close()

Thanks.