【发布时间】:2016-09-07 14:23:18
【问题描述】:
尝试使用 xmlHttpRequest 从前端(javascript)与 POST 和其他名称类似的参数发送密码
"&password=" document.getElementById('password').value
我正在使用HttpServletRequest.getparameter来获取密码的参数字符串,例如string pswd = request.getparameter("password");
该代码适用于所有具有特殊字符的密码,除了 qwe100%qwe、qwe198%qwe 之类的密码 当我传递这些密码时,如果我要读取与密码一起发送的用户名或其他参数也会导致异常[illegalArgumentException] 任何帮助表示赞赏..
【问题讨论】:
标签: javascript servlets xmlhttprequest special-characters