I am able to re-direct HTTP calls to HTTPS. But the problem is that POST requests to HTTP are re-directed as GET calls to HTTPS and they are failing with a 405 error.