S
S
Seganapa2013-03-01 10:27:01
C++ / C#
Seganapa, 2013-03-01 10:27:01

Awesomium 1.7 + Proxy

How to use Awesomium through a proxy? Who faced, help ...

WebPreferences ds = new WebPreferences(); 
ds.ProxyConfig = "myproxy:80"; //настройки сессии
using (WebSession session = WebCore.CreateWebSession(ds)) // сессия
{
webControl1.Source = new Uri("http://google.com");
}


Does not work…

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Seganapa, 2013-03-01
@Seganapa

It seems I figured it out ... Maybe it will come in handy for someone

WebSession session = WebCore.CreateWebSession(new WebPreferences()
            {
                ProxyConfig = "myproxy:80"
            });


            webControl1.WebSession = session;  

            webControl1.Source = new Uri("http://google.com");

S
Seganapa, 2013-03-01
@Seganapa

I looked with fiddler and it doesn't work either...
Although it should work as described here
...

H
humblegenius, 2013-03-06
@humblegenius

Only recently I started to deal with Awesomium (and I chose version 1.6), so I can only suggest intercepting requests with the OnRequest method for version 1.7 or for version 1.6: WebControl.ResourceRequest.

C
Chvalov, 2014-09-29
@Chvalov

Look here: docs.awesomium.net/html/P_Awesomium_Core_WebPrefer...
and here: awesomium.com/docs/1_7_0/cpp_api/struct_awesomium_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question