On Wed, Feb 09, 2005 at 04:16:08PM +0100, Michael Niemaz wrote: > > >> - Why are redirections forbidden in v3.0? > >> > >> > > > >What makes you think so? > > > > > > > I re-compiled my code with v3.0rc1 and ran it as it is; > I get the following error: > > /Entity enclosing requests cannot be redirected without user > intervention > > /
See <http://jakarta.apache.org/commons/httpclient/3.0/redirects.html> for explanations > > What are /Entity enclosing requests?/a Methods that submit a request body such as POST and PUT > But it might be, as you suggested, a problem with my code using the old API. > What do you think? Neither HttpClient 2.0 nor 3.0 automatically redirect POST requests. You have to write a little bit of code around HttpClient to convert POST request into GET. > > Another stupid question: > I keep getting this message: "Response content length is not known". i > suspect > it comes from the HttpMethodBase#readResponseBody method. > How could I get rid of it? See <http://jakarta.apache.org/commons/httpclient/3.0/performance.html#Request/Response%20entity%20streaming> Or more precisely how to parameterize the logging > mechanisms used in the httpClient library? > See <http://jakarta.apache.org/commons/httpclient/3.0/logging.html> Hope this helps, Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
