Added support for HTTP redirect.