3
我似乎無法找到使用代理用戶名和密碼(http/socks4)的方法。任何輸入將是偉大的:)有沒有什麼辦法在Awesomium中使用代理身份驗證?
我使用.net包裝,但我想這沒有任何區別。
感謝,
約翰
我似乎無法找到使用代理用戶名和密碼(http/socks4)的方法。任何輸入將是偉大的:)有沒有什麼辦法在Awesomium中使用代理身份驗證?
我使用.net包裝,但我想這沒有任何區別。
感謝,
約翰
你需要處理的WebControl LoginRequest
事件,那就是如果你 要指定用戶代碼名稱的密碼
private void webcontrol_LoginRequest (object sender, LoginRequestEventArgs e)
{
e.Username = "username";
e.Password = "password";
e.Handled = EventHandling.Modal;
e.Cancel = false;
}
測試:
WebPreferences prefs = new WebPreferences() { ProxyConfig = "xxx.xxx.xxx.xxx:port" };
session = WebCore.CreateWebSession(prefs);
webcontrol = new WebControl() { WebSession = session };
webcontrol.LoginRequest += new LoginRequestEventHandler(webcontrol_LoginRequest);