On Wed, 2010-08-11 at 21:02 +0200, [email protected] wrote: > Hello HttpComponents-Users, > > I'm facing a strange issue when using HttpComponents with successive > POST requests against a simple Tomcat servlet (Form-based POST > Authentication is enabled). After a sucessfull authentication, the > client requests the same protected resource a few times in a row, but > the second request always returns a "501 Method not implemented" status. > All other requests succeed . > > The following communication takes place: > 1. Client requests a protected resource; Tomcat returns the login page > (HTTP200) > 2. Client provides the user credentials and calls the auth check page; > If successful Tomcat returns a redirect (HTTP302) > 3. Client sets the location from the redirect for the next > request(identical to URI from #1) and requests it; Tomcat returns the > page (HTTP200) > 4. Client requests the same page again; Tomcat returns a HTTP501 - > Method not implemented > 5. Client requests the same page again; Tomcat returns the page (HTTP200) > 6. Client requests the same page again; Tomcat returns the page (HTTP200) > 7. Client requests the same page again; Tomcat returns the page (HTTP200) > > > The log message regarding the 501 says: '"testName=testValuePOST > /test/secure/ HTTP/1.1" 501 1278', which may indicate that the entity > and the HTTP-method name somehow got mixed up!?
Please post a wire / context log of the session http://hc.apache.org/httpcomponents-client-4.0.1/logging.html Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
