Skip to content

Commit 50249c6

Browse files
authored
Merge pull request #4263 from aik-jahoda/jajahoda/default_cred
Add proxy credentials remark to HttpHandler.UseDefaultCredentials
2 parents 3e59e7b + bb14310 commit 50249c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xml/System.Net.Http/HttpClientHandler.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,8 @@ handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousA
10871087
10881088
## Remarks
10891089
Set this property to `true` when requests made by the <xref:System.Net.Http.HttpClientHandler> object should, if requested by the server, be authenticated using the credentials of the currently logged on user. For client applications, this is the desired behavior in most scenarios. For middle-tier applications, such as ASP.NET applications, instead of using this property, you would typically set the <xref:System.Net.Http.HttpClientHandler.Credentials%2A> property to the credentials of the client on whose behalf the request is made.
1090-
1090+
1091+
This property doesn't affect proxy credentials. When the default (system) proxy is being used, set credentials explicitly by using the <xref:System.Net.Http.HttpClientHandler.DefaultProxyCredentials> property. When the proxy is set by the <xref:System.Net.Http.HttpClientHandler.Proxy> property, set credentials for the proxy via its <xref:System.Net.IWebProxy.Credentials> property.
10911092
]]></format>
10921093
</remarks>
10931094
</Docs>

0 commit comments

Comments
 (0)