Internet explorer HTTP Authentication - sending or storing headers
-
I am working on developing a browser helper object for IE. I have to automatically login in to some sites. These are issues I am facing: 1. In one of the sites, although I use a Navigate2() function of IWebBrowser2 with 'Basic' Authorization header, the site neglects it because it looks like a javascript function is run while loaded and it opens up a pop asking for credentials again (response header with WWW-Authenticate and Basic realm). 2. There are a few other sites where I succeed in logging in by sending Authorization header. But if I click on any of the links or try to browse, they again ask for credentials - some times with same domain or a different domain when it happens to open a new window. I need a way to store login credentials as a part of internet explorer which the browser can add to every request for a domain or a set of domains. Or, if there are any other solutions, please do suggest. Please do let me know if I am not clear. Thanks, Vijay
-
I am working on developing a browser helper object for IE. I have to automatically login in to some sites. These are issues I am facing: 1. In one of the sites, although I use a Navigate2() function of IWebBrowser2 with 'Basic' Authorization header, the site neglects it because it looks like a javascript function is run while loaded and it opens up a pop asking for credentials again (response header with WWW-Authenticate and Basic realm). 2. There are a few other sites where I succeed in logging in by sending Authorization header. But if I click on any of the links or try to browse, they again ask for credentials - some times with same domain or a different domain when it happens to open a new window. I need a way to store login credentials as a part of internet explorer which the browser can add to every request for a domain or a set of domains. Or, if there are any other solutions, please do suggest. Please do let me know if I am not clear. Thanks, Vijay
-
Sipder, thanks for the suggestion. Could you elaborate more on that, pls? Won't the server look for an authorization header? How does one make sure cookies are read when credentials are required? Thanks, Vijay