As said, I would like to open a URL in a new window (not the default IE browser instance of WebBrowser control) and read the Header information in order to retrieve a token. Currently, I am using the below code that opens in a new IE instance.
webBrowser1.Navigate(myLink, true);
If I use the below code,
webBrowser1.Navigate(new Uri(myLink));
it opens in the current window, I need it to open in a new WINDOW.
Any help would be greatly appreciated.
仅使用Web浏览器创建一个新表单,然后从当前表单中调用它。
u can use this code for open in a new window:
WebBrowser1.Navigate(url.SettingsValue, "_blank", post, headers);
Parameter => url.SettingsValue = your url address
Parameter => "_blank" = for new blank
Parameter => post (your choice) = your token or password
Parameter => headers (your choice) = token header like => "Authorization: Basic " + auth + "\\r\\n";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.