|
-
May 13th, 2003, 06:51 AM
#1
Thread Starter
Lively Member
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.
-
May 13th, 2003, 08:12 AM
#2
Addicted Member
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
-
May 13th, 2003, 03:14 PM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|