You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does .NET Core (.NET 6/7) support the use of HTTP proxy with an automatic configuration script? I tried using it in the following code, but that didn't work. I believe this feature is supported in .NET Framework with settings in configuration files.
using var httpClientHandler = new HttpClientHandler();
using var httpClient = new HttpClient(httpClientHandler);
httpClientHandler.Proxy = new WebProxy
{
Address = "http://address:8083//proxy.pac",
UseDefaultCredentials = true,
BypassProxyOnLocal = true
};
var response = await httpClient.GetAsync(requestUri);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
Does .NET Core (.NET 6/7) support the use of HTTP proxy with an automatic configuration script? I tried using it in the following code, but that didn't work. I believe this feature is supported in .NET Framework with settings in configuration files.
Thank you,
Mikhail
Beta Was this translation helpful? Give feedback.
All reactions