c# - Awesomium C# WebControl,更改代理设置

标签 c# proxy awesomium

如何更改 Awesomium (c#) 中的代理设置? 我现在有这个简单的代码

Awesomium.Windows.Forms.WebControl browser =
    new Awesomium.Windows.Forms.WebControl();

browser = new Awesomium.Windows.Forms.WebControl();
browser.Paint += browser_Paint;
browser.Location = new System.Drawing.Point(1, 1);
browser.Name = "webControl";
browser.Size = new System.Drawing.Size(1024, 768);
browser.Source = new System.Uri("http://checkip.dyndns.com/", System.UriKind.Absolute);
browser.TabIndex = 0;

最佳答案

  WebPreferences prefs = new WebPreferences(){ ProxyConfig = "xxx.xxx.xxx.xxx:port" }
  session = WebCore.CreateWebSession(prefs);
  browser.WebSession = session; 
  browser.Source = new System.Uri("http://checkip.dyndns.com/", System.UriKind.Absolute);

检查 this回答更多详情

关于c# - Awesomium C# WebControl,更改代理设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16001973/

相关文章:

c# - PowerShell 二进制模块程序集依赖性错误

c# - 如何设置一次性电子邮件别名(craigslist 样式)?

ssh - 通过代理下载torrent

javascript - jquery如何处理js对象

c# - 使用 GemBox.Document 编辑表单控件

c# - WCF 消息 :How to remove the SOAP Header element?

c# - 正确修复第一次请求时 HttpWebRequest GetResponse 延迟

ajax - Extjs 代理只是将脏字段发布到服务器,而不是所有字段

c++ - 如何在 Berkelium 中启用拖动选择?

C# - 使用 Awesomium 与 Gmail 交互