Reputation: 91726
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!
Upvotes: 4
Views: 3153
Reputation: 39990
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 HttpWebRequest
will go through your system proxy by default.
Upvotes: 5