Results 1 to 2 of 2

Thread: howto login to a php site with vb?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Posts
    156

    Question howto login to a php site with vb?

    i have a user and pass and i want to login to site:www.rpl24.com

    i using this method:

    Code:
    Dim Dim_Str_Request As String
    Dim_Str_Request = "POST /login.php?txtUserId=12345&txtPassword=12345 HTTP/1.1" & vbCrLf
    Dim_Str_Request = Dim_Str_Request & "User-Agent: Mozilla/6.0 (compatible; MSIE 6.01; Windows NT)" & vbCrLf
    Dim_Str_Request = Dim_Str_Request & "Host: " & WinSck_General.RemoteHost & vbCrLf
    Dim_Str_Request = Dim_Str_Request & "Accept: text/html" & vbCrLf
    Dim_Str_Request = Dim_Str_Request & "Accept: Accept-Language: en, fa" & vbCrLf
    Dim_Str_Request = Dim_Str_Request & "Accept-Charset: iso-8859-1, utf-8, utf-16" & vbCrLf
    Dim_Str_Request = Dim_Str_Request & "Accept-Encoding: deflate, gzip, x-gzip, identity" & vbCrLf
    Dim_Str_Request = Dim_Str_Request & "Connection: Keep-Alive" & vbCrLf & vbCrLf
    Fra_StartOrCreate_TxtBx_Status.Text = "Status: Socket is sending request(Get)..."
    WinSck_General.SendData (Dim_Str_Request)
    i use this but say invalid user pass
    but when i login direct from iexplorer its login prefectly
    why?

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Posts
    156

    Re: howto login to a php site with vb?

    anybody please help me

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