registered the proxy handler for 'https'; fixed in dealing with 'invalid credentials.