added https:// and http:// authentication to url processing