Z
zzitwang
Unregistered / Unconfirmed
GUEST, unregistred user!
现有一个网站,我想用Tidhttp来自动登陆,怎么实现?
如:http://www.ebok.cn/login.asp网站
网站源文件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户管理登陆</title>
<link href="OblogStyle/OblogStyleAdminLogin.css" rel="stylesheet" type="text/css" />
</head>
<body><form name="reg" method="post" action="login.asp?fromurl=" >
<p class="p1"><input name="username" type="text" class="put1" size="25" />
</p>
<p class="p2"><input name="password" type="password" class="put1" size="25" />
</p>
<p class="p3">
<input name="CookieDate" type="radio" value="0" checked="checked" title="若您不在自己的电脑登陆,请不要保存密码" />不保存
<input type="radio" name="CookieDate" value="1" />一天
<input type="radio" name="CookieDate" value="2" />一月
<input type="radio" name="CookieDate" value="3" />一年</p>
<p class="p4"></p>
<div class="but">
<input name="Submit" type="image" src="OblogStyle/OblogStyleAdminImages/login.gif" value="提交" onclick="submit()" /></div>
<div class="code">
</div></p>
</form>
</body>
</html>
如:http://www.ebok.cn/login.asp网站
网站源文件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户管理登陆</title>
<link href="OblogStyle/OblogStyleAdminLogin.css" rel="stylesheet" type="text/css" />
</head>
<body><form name="reg" method="post" action="login.asp?fromurl=" >
<p class="p1"><input name="username" type="text" class="put1" size="25" />
</p>
<p class="p2"><input name="password" type="password" class="put1" size="25" />
</p>
<p class="p3">
<input name="CookieDate" type="radio" value="0" checked="checked" title="若您不在自己的电脑登陆,请不要保存密码" />不保存
<input type="radio" name="CookieDate" value="1" />一天
<input type="radio" name="CookieDate" value="2" />一月
<input type="radio" name="CookieDate" value="3" />一年</p>
<p class="p4"></p>
<div class="but">
<input name="Submit" type="image" src="OblogStyle/OblogStyleAdminImages/login.gif" value="提交" onclick="submit()" /></div>
<div class="code">
</div></p>
</form>
</body>
</html>