Fixed errors with Autodiscover, now follows redirects and adds content length to the headers