Babba
Babba

Reputation: 253

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?

Upvotes: 1

Views: 2554

Answers (1)

gingerbreadboy
gingerbreadboy

Reputation: 7759

request.Proxy = WebRequest.DefaultWebProxy;

You can set a defaultProxy element in your config.

Upvotes: 1

Related Questions