Hi,

I'm encountering a strange issue. The ultimate error is:HTTP Status 405 - Request method 'GET' not supported

My site allows users to browse most parts anonymously over HTTP.

Some pages require the user to authenticate. Most of these pages are also forced over HTTPS. Most use cases work fine, however in one specific situation the user does a POST to an URL that requires authentication and also forces HTTPS. This results in the error: Request method 'GET' not supported.

From looking at the request headers I can see the following:

POST http://localhost/app/test HTTP/1.1

HTTP/1.0 302 Moved Temporarily

GET https://localhost/app/test HTTP/1.1

HTTP/1.1 302 Moved Temporarily

GET https://localhost/sign-in HTTP/1.1

HTTP/1.1 200 OK

POST https://localhost/j_spring_security_check HTTP/1.1

HTTP/1.1 302 Moved Temporarily

GET https://localhost/app/test HTTP/1.1

HTTP/1.1 405 Method Not Allowed

Any thoughts why the secure redirect turns the POST into a GET?

I have tested POSTing to the same URL without forcing HTTPS and that works okay.

Many thanks,
Nes