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) {
        case HttpStatus.SC_MOVED_TEMPORARILY:
            return (method.equalsIgnoreCase(HttpGet.METHOD_NAME)
                || method.equalsIgnoreCase(HttpHead.METHOD_NAME)) &&
locationHeader != null;

So since Firefox, MSIE, etc take redirects from a POST and do a GET on the
redirected location uri, how would I go about doing that in HttpClient?  I
figured I'd ask here before hacking & patching.

Thank you.

-Ryan

Reply via email to