locked
Pick default system proxy settings c# .net RRS feed

  • Question

  • I am writing a Client/Server program in C# in which the requests from client will be delegated through the proxy server. In my case it is required that the proxy related settings should be picked from the default system settings ( whether it is PAC file or the proxy address specified in internet options of windows ) For this, I don't want to make any change to Proxy object of HttpWebRequest instance.

    I have specified the following block in App.config, but while debugging I found that the HttpWebRequest object didn't pick up URL or PAC if I specify either one or both in internet options.

    <system.net>
        <defaultProxy useDefaultCredentials="true">
            <proxy usesystemdefault="true"/>
        </defaultProxy>
    </system.net>

    Can anybody please help, I have wasted 1 week in this but no clues.

    Monday, September 5, 2016 10:57 AM

Answers

All replies