Httpclient 4, error 302. How to redirect?
问题 I want to access one site that first requires an (tomcat server) authentication and then log in with a POST request and keep that user to see the site's pages. I use Httpclient 4.0.1 The first authentication works fine but not the logon that always complains about this error: "302 Moved Temporarily" I keep cookies & I keep a context and yet nothing. Actually, it seems that the logon works, because if I write incorrect parameters or user||password, I see the login page. So I guess what doesn't