我想从servlet向j_security_check发送请求,并从响应中获取auth cookie.码:
String url = "http://someserver:8080/j_security_check?j_username=user&j_password=qwerty";
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
Run Code Online (Sandbox Code Playgroud)
如果我把错误的AUTH参数然后响应我得到一个错误的默认登录页面,但如果我把正确的身份验证参数我有服务器代码408怎么了?