How does Silverlight deal with proxies to connect to the Internet?

I am trying to find out a few questions about Silverlight to find out if it is suitable for the project that I have. The question I could not answer relates to proxy connections.

Is an Internet connection connected through a proxy server of any complexity for the application or is it processed transparently?

+4
source share
2 answers

Silverlight uses a browser framework for web requests. Therefore, it will use the same proxy settings that the browser is configured to use.

+3
source

What Joel said is true. In addition, in SL3 you can use the Silverlight network infrastructure instead of the browser. You switch to it using

HttpWebRequest.RegisterPrefix("http://", WebRequestCreator.ClientHttp); 

Be careful, because in this case, instead of the browser settings, the OS proxy settings are used.


Regarding the mode outside the browser, I just did a simple test:

 var req = HttpWebRequest.Create("http://www.google.com"); if (req.CreatorInstance == WebRequestCreator.BrowserHttp) MessageBox.Show("Browser"); else MessageBox.Show("Client"); 

and found that the browser stack is also used by default in OOB. They probably load some IE component, so it should also use the IE proxy settings.

+1
source

All Articles