1
对不起,我会说一点英语。 我有一个js代码BaseHTTPServer Python和xmlhttprequest授权
url = '/auth'
var http_request = window.XDomainRequest || window.XMLHttpRequest;
http_request = new http_request;
http_request.open("post", url, true, 'jack', 'pass_jack');
http_request.send();
和Python BaseHTTPServer
def do_POST(self):
if self.path == '/auth':
我怎样才能在Python检查用户名和密码?
谢谢。这是正确的。 –