模拟登陆淘宝啊里妈妈成功后怎么获取cookie ??
登陆淘宝或啊里妈妈,用POST登陆不了,只能就IE操作模拟登陆了。但登陆成功要用什么方式获取cookie呢?
查了很多资料都没答案,待高手解答。三克油,三克油{:face (280):}#include <GUIConstantsEx.au3>
#include <IE.au3>
$iuio = False
Global $TimeoPic = 10000
Local $YEAR = @YEAR & '-' & @MON & '-' & @MDAY
_IEErrorHandlerRegister()
Local $oIE = _IECreateEmbedded()
$Form1_1 = GUICreate("Form1", 300, 200)
$CreateObj = GUICtrlCreateObj($oIE, 0, 0, 300, 200)
;GUISetState(@SW_SHOW)
$sUrl = "https://login.taobao.com/member/login.jhtml?style=minisimple&from=alimama&redirectURL=http%3A%2F%2Flogin.taobao.com%2Fmember%2Ftaobaoke%2Flogin.htm%3Fis_login%3d1&full_redirect=true&disableQuickLogin=true"
_IENavigate($oIE, $sUrl, 1)
Local $oForm = _IEFormGetObjByName($oIE, 0)
Local $oQuery = _IEFormElementGetObjByName($oForm, "TPL_username")
_IEFormElementSetValue($oQuery, "...");你的淘宝帐号名
Local $oQuery = _IEFormElementGetObjByName($oForm, "TPL_password")
_IEFormElementSetValue($oQuery, "...");你的淘宝帐号密码
_IEFormSubmit($oForm, 0)
GUISetState(@SW_SHOW)
;MsgBox(0,'',$IEhttp)
$r = 1
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd cookies文件不是会保存在某个目录里面的吗? 我一般是登陆后用_IENavigate()直接跳转至后面的网页... 同楼上的,你在的GUI中建立个ie控件,手动登陆后,再操作你这个ie控件中的页面去跳转.纯模拟.管它什么cookie和post.登陆状态都在.
页:
[1]