Request to j_security_check return 408 error only with right paramters

拟墨画扇 提交于 2019-11-29 12:54:30

To get some resource on the tomcat server with j_security_check auth it is necessary to implement three steps:

  1. Send GET request to the needed private resource, in response you get a cookie (Header "Set cookie".
  2. Send request with cookie (from step 1) to the j_security_check. On response you should get code 302 - "Moved Temporarily".
  3. Now you can repeat request to the private resource with same cookie, on responce you get needed resource data.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!