-
Hi , Could you please help ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@DinCR : seems your company is forcing you to send traffic via it's proxy servers and requires each request to authenticate against that proxy server (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407). The .NET HttpClient which we use in PnP Core SDK can be configured to use a proxy server via environment variables (see https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient.defaultproxy?view=net-7.0). Can that not be an option for you? |
Beta Was this translation helpful? Give feedback.
-
hi, Thank you very nuch . I got it fixed by adding the following line; |
Beta Was this translation helpful? Give feedback.
hi, Thank you very nuch . I got it fixed by adding the following line;
HttpClient.DefaultProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;