Better redirection handling, auto adress discovery
Merge pull request #845 from emmanuel-keller/master

Better redirection handling, auto adress discovery