Re: How to get POST redirects into a GET request.

2010-10-13 Thread Oleg Kalnichevski
On Wed, 2010-10-13 at 00:09 -0400, Ryan Smith wrote: > Ok, ill try to answer my own question. Yes, its against the the RFCs, > > http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html > > Note: RFC 1945 and RFC 2068 specify that the client is not allowed > to change the method on the redi

Re: How to get POST redirects into a GET request.

2010-10-12 Thread Ryan Smith
Ok, ill try to answer my own question. Yes, its against the the RFCs, http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Note: RFC 1945 and RFC 2068 specify that the client is not allowed to change the method on the redirected request So I just overrode the isRedirect() method and re

How to get POST redirects into a GET request.

2010-10-12 Thread Ryan Smith
Hello, I am using HttpClient 4.1-alpha2 and I am coming across a web server that takes a POST method request, but sends back a 302 temp redirect. After checking the DefaultRedirectStrategy code, line 83, I noticed that POSTs wont redirect. (probably breaks an RFC?) switch (statusCode) {