Case insensitive handling of header override in do_method. Fixed broken check for URL passwords.