
programatically posting data to a web page.
I need to programatically get some data from a website
that requires you to fill out a web form. None of the
parameters are passed in the URL so I can't use webrequest
and a set URL. I have a way to fill out the
form programatically (using VB.net) but I don't know how to hit the
accept button. The accept button is named process. I would
appreciate any suggestions. This is what I have so far:
----------------------
Dim wc As New System.Net.WebClient()
Dim nvc As New System.Collections.Specialized.NameValueCollection()
nvc.Add("name1", "value of name1")
nvc.Add("name2", "value of name2")
Dim byteBuffer As Byte()
byteBuffer = wc.UploadValues(" http://www.*-*-*.com/ ;,
"POST", nvc)
Dim stringBuffer As String
stringBuffer = System.Text.Encoding.Default.GetString(byteBuffer)
---------------------------
Thanks
Billy