Results 1 to 3 of 3

Thread: eBay Login Help ***RESOLVED**

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2003
    Location
    Florida
    Posts
    104

    eBay Login Help ***RESOLVED**

    I am using this code to login into eBay. text1.text is being loaded correctly but not the password.

    Thanks for any help:


    Private Sub Command1_Click()

    Dim userid As String
    userid = Text1.Text

    Dim password As String
    password = Text2.Text


    Dim strData() As Byte
    Dim strURL As String
    Dim strHeaders As String

    strURL = "http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll"
    strData = "MfcISAPICommand=SignInWelcome&" & _
    "siteid=0&" & _
    "co_partnerId=2&" & _
    "UsingSSL=0&" & _
    "ru=http%3A%2F%2Fcgi1.ebay.com%2Faw-cgi%2FeBayISAPI.dll%3FMyEbayLogin%26pass%3D%7B_pass_%7D%26userid%3D&" & _
    "pa1=&" & _
    "pa2=&" & _
    "pa3=&" & _
    "pp=pass&" & _
    "i1=0&" & _
    "pageType=174&" & _
    "userid=&" & userid & _
    "pass=&" & password & _
    "keepMeSignInOption=1"


    strHeaders = "Content-Type: application/x-www-form-urlencoded" & vbCr
    strData = StrConv(strData, vbFromUnicode)

    Call Me.WebBrowser1.Navigate2(strURL, 0, "", strData, strHeaders)

    End Sub
    Last edited by rnm89; May 13th, 2003 at 03:15 PM.

  2. #2
    Addicted Member
    Join Date
    Feb 2003
    Posts
    237
    the first thing that pops out at me is this

    "userid=&" & userid & _
    "pass=&" & password & _
    keepMeSignInOption=1"
    the & signifies the beginning of a new field
    it should be

    Code:
    "userid=" & userid & _ 
    "&pass=" & password & _ 
    "&keepMeSignInOption=1"
    if the userid or password contain any spaces or other
    special chars, make sure you url escape them as well.

    http://sandsprite.com/Sleuth/papers/...ed_Strings.txt
    Free Code, papers, tools, and more

    http://sandsprite.com

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2003
    Location
    Florida
    Posts
    104

    Thanks dzzie

    Thanks dzzie, That worked GREAT!!

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