Use local mocked HTTP server to test redirecting.