0

How does one get a Windows .NET application to use the proxy settings configured in Internet Settings?

1 Answer 1

2

While it was posted elsewhere that the HttpWebRequest uses the Windows/IE proxy settings by default, what was not posted was that if the proxy required authentication, the authentication is NOT used by default. That can be corrected by adding the following to the app.config:

<system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true" />
</system.net>

One little bit of configuration that fixed the problem, at least for me.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.