Redirects etc should be detected using case insensitivity
Many parsing fixes