1
我一直在尝试通过URL登录到reddit没有太多的运气,所以我已经尝试过一个HTML文件。我的主要目标是一键登录reddit,没有cookie。通过html登录 - 具体到reddit.com
我搜索了reddit源代码,试图找到密码和用户名的正确名称,也许我在我的HTML中使用了错误的名称,或者这只是HTML不可能的。
有关修复此html的任何想法?
<html>
<head>
<title>Automatic Login</title>
</head>
<body onload="document.forms['securelog'].submit();">
<form action="https://pay.reddit.com" method="post" name="securelog">
<input type="hidden" name="user*" value="redditboy">
<input type="hidden" name="passwd*" value="mypass1">
<!--I have tried user_reg passwd_reg also but they didnt work-->
</form>
</body>
我认为它是'user'和'passwd'(没有'*'?)。 [SRC](https://github.com/reddit/reddit/blob/280eebc2a1150ebfb38d5d98e10db0abbd133ff6/r2/r2/controllers/api.py#L615)。另外,我不认为你需要使用'pay.reddit.com',因为HTTPS现在在全站范围内受到支持,并且已经有一段时间了。事实上,我认为主要的问题是你发布到根站点,而不是登录端点。试试'action =“https://www.reddit.com/login”'。 ([登录Src](https://github.com/reddit/reddit/blob/9372deb62f057a1d504b7722fb54adfad9c2cd53/r2/r2/config/routing.py#L64)) – Pokechu22
如果这样的作品,让我知道,我会张贴完整答案。 – Pokechu22
谢谢@Pokechu22但它没有工作,它返回页面未找到。 –