Added support for HTTP redirections.