hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: 501 Method not implemented with successive POST requests
Date Thu, 12 Aug 2010 12:30:03 GMT
On Wed, 2010-08-11 at 21:02 +0200, krabat@darkfluid.com 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: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message