Html 调试Http 405“;“不允许使用方法”;
web服务器正在运行(在EC2上),我正在用method=“post”属性以两种方式测试这个简单的Html5登录表单:Html 调试Http 405“;“不允许使用方法”;,html,http,Html,Http,web服务器正在运行(在EC2上),我正在用method=“post”属性以两种方式测试这个简单的Html5登录表单: 原样 在一个更大的网站内 第一种方法使用Http 200,但第二种方法生成Http 405“不允许使用方法”。两者在web服务器上使用相同的处理程序代码 我找不到问题出在哪里。调试此方法的最佳方法是什么?问题在于web服务器以及处理Post方法的类函数的参数/属性顺序。有关基于Python的web服务器的更多信息,是什么?1和2在堆栈方面可能有什么不同? <div>
我找不到问题出在哪里。调试此方法的最佳方法是什么?问题在于web服务器以及处理Post方法的类函数的参数/属性顺序。有关基于Python的web服务器的更多信息,是什么?1和2在堆栈方面可能有什么不同?
<div>
<form action="" method="post" >
<p/>
<input id="username" type="text" name="username" placeholder="Username" >
<p/>
<input id="password" type="password" name="password" placeholder="Password" >
<p/>
<input type="submit" class="btn" value="Login">
</form>
</div>
username = self.get_argument('username')
password = self.get_argument('password')