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但它沒有工作,它返回頁面未找到。 –