added support for handling 301 and 302 http redirects