HttpWebRequest and application configuration file

Topics: Feature Requests
Mar 12, 2012 at 9:43 AM

Hi,

I've tested your API with single sign one configuration and web proxy. I always had : error 407 proxy authentication required.

So I had to comment your piece of code where you configure web requests to use the configuration file of the application. In fact, I had to comment all preauthenticate code.

Using the configuration file of the application, it can automatically configure all web requests in the same way.

I think you can modify it for your next releases.

Anthony

Mar 12, 2012 at 11:56 AM

what ;/

Oct 22, 2012 at 10:13 AM

You can use WebRequest.GetSystemWebProxy()

http://msdn.microsoft.com/en-us/library/system.net.webrequest.getsystemwebproxy.aspx (From FW 2.0)

At least for client applications that has on Client machine the system proxy configured on IE Settings) and assign the result to GMapProvider.WebProxy.

But... why it is not included by default? It will save us to put this piece of code everywhere we create a request... And this does nothing if no proxy exists... (returns an "empty" proxy).

Hope it helps...

 

Greetings.

Oct 22, 2012 at 10:41 AM

are you sure ;}