Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-dev] Redirect during POST processing

Hi there

I was implementing the federation authenticator for jetty where I followed the example of the FormAuthenticator. I wrote a testcase with HttpClient and discovered that the redirect is not processed after posting username/password.

The http specs says:

//            http://www.ietf.org/rfc/rfc2616.txt
//            If the 301 status code is received in response to a request other
//            than GET or HEAD, the user agent MUST NOT automatically redirect the
//            request unless it can be confirmed by the user, since this might
//            change the conditions under which the request was issued.

As this is not very nice, couldn't we just restore the saved original request without redirecting to it?

Thanks
Oli



Back to the top