private static Task<HttpResponseMessage> InnerSendAsync(HttpRequestMessage request, Uri authUri, bool async, ICredentials credentials, bool isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
{
return isProxyAuth ?
- SendWithProxyAuthAsync(request, authUri, async, credentials, true, connectionPool, cancellationToken).AsTask() :
- SendWithRequestAuthAsync(request, async, credentials, true, connectionPool, cancellationToken).AsTask();
+ SendWithProxyAuthAsync(request, authUri, async, credentials, false, connectionPool, cancellationToken).AsTask() :
+ SendWithRequestAuthAsync(request, async, credentials, false, connectionPool, cancellationToken).AsTask();
}
public static Task<HttpResponseMessage> SendWithNtProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async, ICredentials proxyCredentials, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken)
[InlineData(true)]
[InlineData(false)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37087", TestPlatforms.Android)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56798", TestPlatforms.tvOS)]
public async Task GetResponseAsync_UseDefaultCredentials_ExpectSuccess(bool useSsl)
{
var options = new LoopbackServer.Options { UseSsl = useSsl };
[InlineData(true)]
[InlineData(false)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/37087", TestPlatforms.Android)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/56798", TestPlatforms.tvOS)]
public async Task HaveResponse_GetResponseAsync_ExpectTrue(bool useSsl)
{
var options = new LoopbackServer.Options { UseSsl = useSsl };
}
}
- [Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/37087", TestPlatforms.Android)]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))]
public void HttpWebRequest_Serialize_Fails()
{
using (MemoryStream fs = new MemoryStream())
});
}
- [Fact]
- [ActiveIssue("https://github.com/dotnet/runtime/issues/37087", TestPlatforms.Android)]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))]
public async Task HttpWebResponse_Serialize_ExpectedResult()
{
await LoopbackServer.CreateServerAsync(async (server, url) =>
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.IO.Pipes/tests/System.IO.Pipes.Tests.csproj" />
<!-- Crashes or hangs, did not produce testResults.xml -->
- <!-- https://github.com/dotnet/runtime/issues/52117 -->
- <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.Requests/tests/System.Net.Requests.Tests.csproj" />
<!-- https://github.com/dotnet/runtime/issues/52120 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj" />