I want to make a script, that can login into eBay and show me my list of my bought articles.
In addition I must log in naturally only with eBay. The form side runs with https://, so is use the Port 443. Unfortunately comes thereupon no answer of the server.
The answer is "* /sockwrite: 'mt2_ebaylogin' not connected" - Error 10061.
Can someone say me, how it can work, so I can login into eBay?
alias mt2_ebaylogin {
.timersockclose_mt2_ebaylogin 1 5 sockclose mt_ebaylogin
sockclose mt2_ebaylogin
sockopen -e mt2_ebaylogin ebay.de 443
}
on *:SOCKOPEN:mt2_ebaylogin:{
echo 4 -s Login... $sockname - $sockerr - $sock($sockname).wserr
var %user = username
var %pass = password
var %form = userid= $+ %user $+ &pass= $+ %pass $+ &login=Sicheres Einloggen
sockwrite -n $sockname POST /ws/eBayISAPI.dll?SignIn HTTP/1.1
sockwrite -n $sockname Host: signin.ebay.de
sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
sockwrite -n $sockname Content-Length: $len(%form)
sockwrite -n $sockname %form
sockwrite -n $sockname $crlf
}
on *:SOCKREAD:mt2_ebaylogin:{
sockread %mt2_ebaylogin
echo -sg %mt2_ebaylogin
}