Hi Sean, This last statement makes me think you're barking up the wrong tree. Originally the conversation was about redirecting POST methods (which you can do very easily without changing HttpClient), however your real problem seems to be that there's something going wrong with a POST request and it's showing up as a redirection issue. If it makes no sense that httpclient think a redirect is happening then there is a bug somewhere (either in HttpClient, the server or your app) which is very likely to come back and bite you if you don't solve it now.
What I would suggest is that you provide a wire log so we can determine why HttpClient thinks a redirect is required and exactly what the server is sending back etc. Instructions are at http://jakarta.apache.org/commons/httpclient/logging.html Once we have that we can take a look into what the real cause of the problem is a likely suggest a better solution than hacking away at HttpClient. Regards, Adrian Sutton, Software Engineer Ephox Corporation www.ephox.com -----Original Message----- From: Sean W. Ferguson [mailto:[EMAIL PROTECTED] Sent: Wednesday, 27 August 2003 7:10 AM To: Jakarta Commons Users List Subject: Re: [HttpClient] setFollowRedirects(true) on PostMethod Well, I am doing a post to a servlet that just writes back data on the response. No redirects or anything, and that exception gets thrown. I'd prefer not to have to modify the httpclient code, but it makes no sense to me that it thinks a redirect is happening. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
