Results 1 to 8 of 8

Thread: Service in vb.net that needs to login to an asp page

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Location
    NH
    Posts
    90

    Service in vb.net that needs to login to an asp page

    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:
    1. Dim wc As New Net.WebClient 'the webclient
    2.     Dim bt() As Byte 'the returned bytes
    3.  
    4.     'setup fields to be sent
    5.     Dim fields As New Specialized.NameValueCollection
    6.     fields.Add("j_username", "sls") 'search option
    7.     fields.Add("j_password", "ssfsssfs") 'search box
    8.     fields.Add("LogIn", "") 'button pressed
    9.  
    10.     bt = wc.UploadValues(URL, fields) 'send fields and retrieve response
    11.     html = System.Text.Encoding.ASCII.GetString(bt) 'convert to text
    Last edited by slr; Sep 28th, 2005 at 01:20 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width