Use local mocked HTTP server to test redirecting.
Merge pull request #3 from allenxwang/eran-di

Use local mocked HTTP server to test redirecting.