added support for handling 301 and 302 http redirects
Merge pull request #8 from samkirton/master

added support for handling 301 and 302 http redirects