简体   繁体   中英

Avoid 'Proxy Authentication Required' in all my c# application

In my application i use external resources on web that require proxy authentication. All my requests are http type by using WebRequest / DataSet.ReadXml(url) / ecc..... Every time i need to give credentials...

So is possible to assign credential only one time in my application?

request.Proxy = WebRequest.DefaultWebProxy;

您可以在config中设置defaultProxy元素

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM