我试图使用Python中的Requests模块发布一个登录到网站的请求,但它实际上不起作用。我需要在iomega家庭媒体网络中自动更改内容。这是登录页面。一定有什么东西阻止了登录。你知道吗
function SubmitForm() {
//first of all, check if the login field is not empty
if ($("#mnglogin").val() == "") {
//present an error message about it
showErrorStr("Nome de usuário ou senha especificado inválido.", function () {
//focus the username field
$("#mnglogin").focus();
return (false);
});
return (false);
}
//do the login
var usernameValue;
usernameValue = $("#mnglogin").val();
var flds = addField(null, "login", usernameValue);
flds = addField(flds, "password", $("#mngpwd").val());
formPost("#folderLoginDialog", getRestUrl("SessionLogin"), flds,
[{"api":"login","form":"mnglogin","text":"Nome de usuário"},
{"api":"password","form":"mngpwd","text":"Senha"}],
{after:loginDone,hideError:true});
return (false);
}
目前没有回答
相关问题 更多 >
编程相关推荐