I’ve noticed some programs (such as IE and Firefox) can automatically detect a network proxy server to use for Internet traffic. Is it possible to do the same in C#? Are there APIs for this? Thanks!
I’ve noticed some programs (such as IE and Firefox) can automatically detect a network
Share
You’re probably looking for WebRequest.DefaultWebProxy or possibly WebRequest.GetSystemWebProxy. This should be able to pick up whatever IE detects.
Also, other SO questions indicate that
HttpWebRequestwill go through your system proxy by default.