retry redirected POST requests with cookie authentication