I have .Net 3.5 WinForms application that require access to the Internet. But my company network uses dynamic proxy settings shown below. All my attempts to retrieve and use this setting got fail.
How to use this proxy in .net application?
But default every HttpWebRequest should automatically be filled out with this information. See C# Getting proxy settings from Internet Explorer
By default the .NET framework will use whatever proxy settings setup on the local machine. So what you asked should be done automatically. Check DefaultProxy setting in your config file .
http://msdn.microsoft.com/en-us/library/kd3cf2ex%28v=vs.90%29.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.