I am writing a service that needs to login into a .asp page This is what I was attempting but.... it did not work. Any help would be great. Thanks scott
VB Code:
Dim wc As New Net.WebClient 'the webclient Dim bt() As Byte 'the returned bytes 'setup fields to be sent Dim fields As New Specialized.NameValueCollection fields.Add("j_username", "sls") 'search option fields.Add("j_password", "ssfsssfs") 'search box fields.Add("LogIn", "") 'button pressed bt = wc.UploadValues(URL, fields) 'send fields and retrieve response html = System.Text.Encoding.ASCII.GetString(bt) 'convert to text




Reply With Quote