hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Gastaldi <george.gasta...@neogrid.com.br>
Subject RE: URIException - Unbuffered entity enclosing request can not be repeated
Date Wed, 23 Jul 2003 13:36:52 GMT
Thanks for the quick answer.

Bonus question: How do I let PostMethod class to buffer ? ;)


-----Original Message-----
From: Kalnichevski, Oleg [mailto:oleg.kalnichevski@bearingpoint.com]
Sent: Wednesday, July 23, 2003 10:27 AM
To: Commons HttpClient Project
Subject: RE: URIException - Unbuffered entity enclosing request can not
be repeated


George,

What it basically means is that an entity enclosing request (such as POST or
PUT) cannot be retried because the request content has not been buffered.
Entity enclosing request may need to be retired in case of authentication
challenge or i/o failure.

In order to work this problem around you may need 

1.) provide a retry mechanist of your own (a simple while not done loop) in
case it is an i/o problem
2.) use preemptive authentication (provided you are using Basic scheme) in
case it is an authentication problem
3.) just let the PostMethod class to buffer the damn thing

I hope this helps

Oleg

-----Original Message-----
From: George Gastaldi [mailto:george.gastaldi@neogrid.com.br]
Sent: Wednesday, July 23, 2003 15:16
To: Commons HttpClient Project (E-mail)
Subject: URIException - Unbuffered entity enclosing request can not be
repeated


Dear List,

I am using HTTPClient beta 1 and, strangely, the following exception
(URIException) occurred:	
	"Unbuffered entity enclosing request can not be repeated. Code: 0"
followed by a 501 - Not implemented code.	What situations could this
occur (in a less technical way) ? This error message is quite confusing.

Thanks !

---------------------------------------------------------------------
To unsubscribe, e-mail:
commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail:
commons-httpclient-dev-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message