Redirect support

i.e. automatically change scheme to HTTPS on redirect