Commit Graph
149 Commits
Author SHA1 Message Date
David Shulman 19ef688da1 Cleanup Windows 10 version detection (dotnet/corefx#25052)
* Cleanup Windows 10 version detection

Windows 10 Version 1709 ("Fall Creators Update") has been released. This
PR cleans up the version detection to use the latest RTM build numbers
and removes obsolete InsiderPreview detection for those tests.

Also, removed ActiveIssue for tests that are now fixed due to Windows 10
fixes.

Fixes dotnet/corefx#22187

* Addressed feedback


Commit migrated from https://github.com/dotnet/corefx/commit/ac410223aa763a0f67880815057ee1bfe0f4cb6e
2017-11-04 11:09:38 -07:00
Stephen Toub 087ef535f4 Use the Host header for the SSL handshake
Commit migrated from https://github.com/dotnet/corefx/commit/5ecea8ff47c03a073a77916a9c7d1d806f8c7ce3
2017-10-25 13:40:03 -04:00
Stephen Toub ac386deda7 Don't fail a redirect that's missing a Location header
Commit migrated from https://github.com/dotnet/corefx/commit/ddfab940fcc2d571c2da85250c13e457ab1933a2
2017-10-25 13:23:59 -04:00
Stephen Toub 6d13fd5bc3 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/3b9525bd44ffab17a227cad47ae607bbf370dc1c
2017-10-18 00:19:35 -04:00
Tomas Weinfurt e12d604d93 Add minimal handling for HTTP 1.0 requests to ManagedHandler (dotnet/corefx#23653)
* add minimal handling for 1.0 requests.

* use 1.1 as default version and move some message to resource file

* fix spelling

* remove exception for 2.0 requests and fall-back to 1.1

* remove s_spaceHttp20NewlineAsciiBytes as it is not used now

* add isHttp10 bool to avoid duplicate check.


Commit migrated from https://github.com/dotnet/corefx/commit/8b266d0ca4a12428629b3a7abf79c61c29e50883
2017-10-02 23:40:30 -04:00
Stephen Toub 7be9b5bb5f Switch tests to use thread-local switch for ManagedHandler
And as a result re-enable parallelism of the test suite, which on my machine reduces the running time of the outerloop tests from 150s to 45s.


Commit migrated from https://github.com/dotnet/corefx/commit/3db504ec31fb03162b33e0658870aef5af4e4abe
2017-09-21 08:26:44 -04:00
Lakshmi Priya Sekar 7bf96b53d4 Consolidate code between different Http handlers.
Commit migrated from https://github.com/dotnet/corefx/commit/5ef59053709ef8b6f5b30b709bffbe38fcb19823
2017-09-07 11:18:43 -07:00
Lakshmi Priya Sekar ec142d891b Use only CredentialCache when redirecting Uris in ManagedHandler.
Commit migrated from https://github.com/dotnet/corefx/commit/9d5f5d1f8630e3c50404647926496b0d45cf1203
2017-09-05 18:26:43 -07:00
David Shulman c3dbc2406e Disable some networking tests
Disabling tests.
dotnet/corefx#23765 dotnet/corefx#23766 dotnet/corefx#23767 dotnet/corefx#23768 dotnet/corefx#23769 dotnet/corefx#23770 dotnet/corefx#23771


Commit migrated from https://github.com/dotnet/corefx/commit/acafae51592f7e09fba003a3684d550dba155a2e
2017-09-02 16:50:54 -07:00
David Shulman 7df69b01b9 Re-enable HTTP/2 test
Turning back on the HTTP/2 test that relied on www.microsoft.com being
HTTP/2 now that the HTTP/2 server farm processing those requests is
working again.

Fixes dotnet/corefx#22735


Commit migrated from https://github.com/dotnet/corefx/commit/169daaad2062ab623fdafa738c3fdbc778d3652e
2017-09-01 12:33:26 -07:00
Stephen Toub d7e1498910 Fix ManagedHandler redirect post->get behavior (dotnet/corefx#23216)
Commit migrated from https://github.com/dotnet/corefx/commit/2f4faed916caa8d70a72ad7518705aeac7c68257
2017-08-14 13:12:48 -04:00
Stephen Toub e2218fc078 Add Expect: 100-continue support to ManagedHandler (dotnet/corefx#23196)
Commit migrated from https://github.com/dotnet/corefx/commit/791f81d2d8eb45e5077d2c0c17e784ad597c5e3a
2017-08-14 08:42:01 -04:00
Stephen Toub 50805a924a Update TODOs with issue numbers
Commit migrated from https://github.com/dotnet/corefx/commit/924d34b8a04eb1bc0f005848d784d7d414d0d4d3
2017-08-11 15:34:57 -04:00
Stephen Toub 8bfc1f89b1 Fix potential deadlocks in HttpClient tests
A bunch of tests have the following structure:
```C#
var clientTask = hc.GetAsync(...);
await server.HandleRequest();
Handle(await clientTask);
```
If the HttpClient request fails in a way that causes the server not to receive the request, the test will hang, as the await for the server operation to complete will never complete.

This commit changes a bunch of the tests to avoid that pattern.  This makes several of the tests disabled due to hanging actually reveal the cause of the problem, e.g. the ManagedHandler not supporting 1.0 requests and failing immediately if provided with that version without making a request to the server.


Commit migrated from https://github.com/dotnet/corefx/commit/e34b6fd99085c69c8fd7a64ed5eb4da5b66f4136
2017-08-11 15:34:06 -04:00
Stephen Toub 48a1b245f6 Handle invalid chunk size in ManagedHandler (dotnet/corefx#23160)
To match WinHttpHandler, support chunk sizes up to ulong.MaxValue in size, and throw exceptions for anything larger.

Commit migrated from https://github.com/dotnet/corefx/commit/c8768231c3a272dd6f330dd1cccb9fa69e671915
2017-08-11 15:33:31 -04:00
Tarek Mahmoud Sayed 3765a6069b Moving PlatformDetection to Corefx.Private.TestUtilities assembly (dotnet/corefx#23109)
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly

The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.

* Fix Linux BB

* Update the xunit package reference

* Fix wrong condition on one of the tests

* Update the ConditionalFact/Theory to use Type as a parameter


Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
2017-08-10 22:37:36 -07:00
David Shulman 3b0d3fbb4e Update UAP test regarding 'TRACE' method (dotnet/corefx#22973)
* Address delayed feedback

Address delayed feedback from PR dotnet/corefx#22702 and release/uwp6.0 port PR
dotnet/corefx#22759

* Remove active issue on Uap TRACE test

Uap platform doesn't support the 'TRACE' verb.  After discussion with
Wininet team, the method is explicitly not allowed. So, removing the
activeissue and just skipping that part of the test.

Fixes dotnet/corefx#22161


Commit migrated from https://github.com/dotnet/corefx/commit/f7bc8b413406e94549f21be79e67641f11ae8266
2017-08-04 23:38:39 -07:00
David Shulman bf75c2d777 Fix HttpClient redirection logic on UAP (dotnet/corefx#22702)
* Fix HttpClient redirection logic on UAP

This PR changes the implementation of sending requests in HttpClient for UAP when
dealing with redirection. In the past, we would let the WinRT layer handle auto
redirection logic. However, due to dotnet/corefx#9003, the cookies were getting lost on 3xx responses
since the .NET layer didn't see them. So, this PR implements the redirection ourselves.

One important part of redirection is that we need to drop credentials. The WinRT layer
did this for us. However, we are unable to use a single WinRT HttpBaseProtocolFilter object
since we need to remove the credential after the first redirect. So, we need to maintain
a second filter that uses no credentials and keep it in sync regarding all the other properties
of the primary filter.

With this PR, the behavior of other aspects (such as controlling max number of redirects, etc.)
now matches .NET Framework.  So, some tests were adjusted to remove the UAP specific behavior
checks.

Fixes dotnet/corefx#9003
Fixes dotnet/corefx#22191

* Disable test on Linux

* Address PR feedback

* Disable failing HTTP/2 test


Commit migrated from https://github.com/dotnet/corefx/commit/f2308f8db0679ac63e8e7eeac9d56cb035d6d9e3
2017-07-28 16:43:40 -07:00
David Shulman 247c84a48c Reconcile behavior of MaxRequestContentBufferSize across .NET Core (dotnet/corefx#22201)
* Reconcile behavior of MaxRequestContentBufferSize across .NET Core

The HttpClientHandler property, MaxRequestContentBufferSize, has been
deprecated. This PR reconciles the behavior of the getter and setter of
the property.

Similar to other decisions in HttpClient PRs with these kinds of
behavior differences, we are not going to throw PNSE. We will document
the differences in the AppCompat docs.

Fixes dotnet/corefx#7879

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/e740973fed660da4426218bf2ec4be35a60ad095
2017-07-13 13:21:41 -07:00
David Shulman b85affb0a9 Adjust Http tests for UAP behavior differences (dotnet/corefx#22193)
Made changes to some UAP tests due to known platform differences.
Differences will be documented in the AppCompat docs.

Opened some new issues for bugs to investigate.

Fixes dotnet/corefx#22159
Fixes dotnet/corefx#22163

Commit migrated from https://github.com/dotnet/corefx/commit/1db009972e87bcdb719954bb6b00e19e67f4860b
2017-07-12 19:17:28 -07:00
David Shulman 9441d0365a Re-enable and fix Http tests for UAP (dotnet/corefx#22155)
* Re-enable anf fix Http tests for UAP

* Removed ActiveIssue from a bunch of Http tests.

* Converted some ActiveIssue to SkipOnTargetFramework due to
platform differences.

* Change some tests to use RemoteInvoke to get process isolation
since UAP will cache connections per-process.

* Removed a duplicate ChannelBinding test. There is already the
same test in HttpClientHandlerTest.ServerCertificates.cs
(PostAsync_Post_ChannelBinding_ConfiguredCorrectly). And that
test checks more things.

Contributes to dotnet/corefx#20010

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/a3cd07a7b608358710ac073cbe41f65866aa929a
2017-07-12 13:26:01 -07:00
Stephen Toub 9a99800209 Several test fixes to unblock failing tests
Commit migrated from https://github.com/dotnet/corefx/commit/a910d82cab99072c89746761d77b231c88ed5790
2017-07-05 14:02:33 -04:00
Stephen Toub 6a3070c094 Don't fail when there's no status description
Or when the status code doesn't have a known status description.


Commit migrated from https://github.com/dotnet/corefx/commit/a031a3b5d4199fe92efd9a7785fa67a79cafc53d
2017-07-05 12:43:12 -04:00
Stephen Toub 5f28d7f42c Enable most of ManagedHandler_HttpClientHandlerTest tests
Explicitly disabled a few that are failing.  We'll need to revisit those subsequently, but this at least gets most of the tests running.


Commit migrated from https://github.com/dotnet/corefx/commit/2179ea079abb5c15aeb0387c7e52ab25b8503713
2017-07-05 12:43:12 -04:00
David Shulman 7e59e3b2a7 Clarify default credentials usage for HttpClientHandler on UAP
This PR clarifies how credential handling and specifically default
logged-on credentials actually works on the UAP platform.

First, "default credentials" are the current credentials of the
logged-on user, typically on an enterprise network joined to an
Active Directory domain. When these credentials are sent to a
proxy or server, only Negotiate, Kerberos, or NTLM schemes are
used. Those credentials can never be sent via other schemes
like basic or digest.

.NET Framework traditionally has two ways for developers to specify
using default logged-on credentials to send to the server. Either
set the .UseDefaultCredentials property to true or specify
CredentialCache.DefaultCredentials to the .Credentials property.

For proxy credentials, the developer could pass DefaultCredentials
via the custom IProxy object or via the .DefaultProxyCredentials
property.

.NET Framework would send default credentials anywhere (intranet
or internet) if specified by the developer.

The UAP platform implementation of System.Net.Http uses a different
set of rules for sending default credentials. It is based on whether
the app has Enterprise Authentication capability as well as if the
endpoint is specified in an intranet zone. This design is part of
the base native WinInet and WinHTTP stacks. It was a design choice
to provide optimum security as well as convenience for developers
writing apps for enterprise scenarios.

This PR does a few things. First, it keeps the .NET ICredentials
properties stored separately so that they correctly round-trip
on get and set. .NET NetworkCredential has 3 parameters (domain,
user, password). But WinRT PasswordCredential only has 2 parameters
(user, password). We now convert to the WinRT objects only when
we need to use them.

Second, this PR clarifies that the .UseDefaultCredentials property
is basically a no-op because the API models of default credentials
handling is different on the UAP platform as described above.

These platform differences will be documented here:
https://github.com/dotnet/corefx/wiki/ApiCompat

Fixes dotnet/corefx#19642
Fixes dotnet/corefx#21510


Commit migrated from https://github.com/dotnet/corefx/commit/2c33453f3e4064c75d404c6f3590ddf00a377d10
2017-06-28 11:50:27 -07:00
David Shulman 65782675d6 Fix some TLS related HttpClientHandler properties for UAP (dotnet/corefx#21630)
Due to platform differences on UAP and the current use of WinRT APIs to
implement that HTTP stack, a few properties won't have the same defaults
or behavior.

CheckCertificateRevocationList default value is true for UAP and can't
be changed. However, on UAP, revocation checking that results in an
indeterminate status (i.e. revocation server offline) is treated the
same as a valid result. This is the behavior of the underlying WinRT
APIs.

SslProtocols default value is SslProtocols.None which is the same as the
rest of .NET Core. 'None' means to use the system default. However, changes
to this property value will be ignored.

Similar to the decision made in PR dotnet/corefx#21403, we don't throw PNSE for these
differences. Instead we just no-op on the property setter.

The behavior differences will be documented in:
https://github.com/dotnet/corefx/wiki/ApiCompat

Contributes to dotnet/corefx#18116.

Commit migrated from https://github.com/dotnet/corefx/commit/711f785f072c8131b9d49792eeab02d2d55be662
2017-06-27 14:34:03 -04:00
David Shulman 15fcaa332b Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/b690cd329dba0da32824b29eeb3945d6d11f6085
2017-06-24 21:20:40 -07:00
David Shulman 07b1b1c311 Fix some HttpClientHandler properties for UAP
Due to platform differences on UAP and the current use of WinRT APIs to
implement that HTTP stack, a few properties won't have the same defaults
or behavior.

Similar to the decision made in PR dotnet/corefx#21403, don't throw PNSE. Instead
just no-op.

Fixes dotnet/corefx#18036 dotnet/corefx#17812


Commit migrated from https://github.com/dotnet/corefx/commit/0de066e0bc3b67b6bc6fd1db26abea2cda1ce4d9
2017-06-24 14:14:45 -07:00
David Shulman 21b6b7e235 Fix HttpClientHandler PreAuthenticate property for UAP (dotnet/corefx#21403)
The HttpClientHandler for UAP does not properly implement the PreAuthenticate
property. This is because on UAP, HttpClientHandler is built on the WinRT
APIs which in turn are built on WinInet. And WinInet always uses authentication
caching internally and this results in the net effect of PreAuthenticate always
being "true".

The default for .NET Framework and .NET Core (non-UAP) is "false".

When this property was first added to .NET Core 1.1, the UAP version defaulted
to true and the setter would throw PNSE.

As part of .NET Core 2.0, API surface for networking APIs was expanded. This
resulted in HttpWebRequest exposing and implementing a "PreAuthenticate" property,
which is what it has historically done in .NET Framework. On .NET Core, HttpWebRequest
is built on top of HttpClient. And so, HttpWebRequest was enhanced in .NET Core 2.0
to set the default of PreAuthenticate to false. But this later caused the PNSE
exception to surface and this exception was caught in UWP app-compat testing.
Essentially, we had now created the default HttpWebRequest to always throw an
exception.

So, in PR dotnet/corefx#18105, the PNSE in HttpClientHandler.PreAuthenticate was commented out
and thus the setter became a no-op.

This PR basically acknowledges this situation and removes the TODO from this change.
Since there is no good way to implement the actual HttpClientHandler.PreAuthenticate
property, I left the getter default to return "true" which is closer to reality of
what happens on UAP (even though this default value is different from .NET Framework
or the rest of .NET Core). And, in terms of the setter for the property, I opted to
leave it as a no-op. This seems like the best compromise outcome for now and will
generate less distraction for developers rather than throwing an exception all the
time.

The rest of this PR moves the ActiveIssue's from the class level to the method level
as part of eventually solving all of them. In addition, I added a new test case to
validate the HttpClientHandler constructor defaults that are different on the UAP
platform.

Fixes dotnet/corefx#18104

Commit migrated from https://github.com/dotnet/corefx/commit/c3b2f15d90972a5607415582681584965f16c01d
2017-06-23 05:26:07 -04:00
Stephen Toub e687c3c3ae Merge pull request dotnet/corefx#20145 from safern/DisableNetTests
Disable System.Net.* tests for issue dotnet/corefx#19967

Commit migrated from https://github.com/dotnet/corefx/commit/d59a6a31c7a9106821443002b04ce56b82f0b35f
2017-05-22 23:11:28 -04:00
Santiago Fernandez 96d1270381 Disable System.Net.* tests for issue dotnet/corefx#19967
Commit migrated from https://github.com/dotnet/corefx/commit/ec8df2b33e5a155325228fda75792c5319126f28
2017-05-22 16:32:50 -07:00
Santiago Fernandez Madero c65dd7a4bd Test attributes cleanup for Uap now that Uap flag includes UapAot (dotnet/corefx#20108)
* Update xunit extensions to unify TargetFrameworkMonikers.Uap to include UapAot

Commit migrated from https://github.com/dotnet/corefx/commit/652d12bf31606eeef8fe8b9a7bf1cc7af06f6352
2017-05-22 15:10:24 -07:00
David Shulman d899bda510 Disable System.Net.Http tests on UAP/UAPAOT (dotnet/corefx#20017)
Disable a bunch of System.Net.Http tests on UAP/UAPAOT platform.

Both inner and outer loop tests now run clean for System.Net.Http

Commit migrated from https://github.com/dotnet/corefx/commit/38cd7f91dbbc5ac4001bf15762a8e244f5ec3a70
2017-05-19 14:28:54 -07:00
Jason Lin 996a786159 Enable most corefx tests for Bash on Windows
Many corefx tests are skipped when running on Bash on Windows. As of Win10 Creators Update, most of these skipped tests now pass, so they can now be enabled.


Commit migrated from https://github.com/dotnet/corefx/commit/cf3c7d5a3283da40e8a2849e8776e23c7292fb41
2017-05-14 21:02:27 -07:00
Stephen Toub 52d5beec99 Disable SendAsync_ReadFromSlowStreamingServer_PartialDataReturned test on netfx
This test sends some of the data planned by Content-Length but keeps the connection open; the client is then supposed to read that data and verifies that it got only what was sent and didn't hang.  But it's hanging on netfx.  The problem is that ConnectStream.BeginRead on netfx first reads what it has buffered, and if it doesn't have buffered as much as was asked for, it then issues an asynchronous read rather than just returning the what it has.


Commit migrated from https://github.com/dotnet/corefx/commit/2f19b380923cfeb8a7387d6c9cfad30a0b713f38
2017-05-10 15:06:43 -04:00
Stephen Toub 9401004824 Stop disposing of request content in HttpClient
HttpClient on Unix fails for some sites, in cases where the site sends a response before it’s fully received the entirety of the request.  That’s because HttpClient has logic to Dispose of the request content once the Task returned from the handler’s SendAsync completes, and unlike WinHTTP, libcurl doesn’t require that the whole request be sent before any of the response is processed.  That means that CurlHandler may receive the response (or the response headers), complete the SendAsync task, but still be reading from the request content, which may then be disposed of by HttpClient while it’s still in use, causing potential corruption, exceptions, etc.

The Dispose behavior has other problems with it.  A more generalized version of the above is that it prevents handlers that want to support full duplex communication, since it essentially requires that the whole request be sent before the response is processed.  It also forces extra cost onto consuming code in some situations, as it means that the request content objects can’t be pooled and reused (since disposal typically invalidates objects for such a purpose, though in some cases a custom content could be developed to override and ignore Dispose).

A variety of approaches were explored to address this:
- Change CurlHandler to only complete the SendAsync Task when both the request has been fully sent and the appropriate portion of the response has been received.  This is problematic, though, as with the pull model employed by libcurl, we don’t know reliably when the request has been fully sent.
- Change the disposal to be handled by the handlers rather than by HttpClient.  This could help in that a handler like CurlHandler could simply defer disposal until libcurl tells it the “easy” operation is done.  But it has other downsides. Today code can use an HttpClientHandler without HttpClient, e.g. by using HttpMessageInvoker instead of HttpClient, in which case it bypasses this disposal logic (and other logic provided by the relatively thin HttpClient wrapper). If we were to move the disposal logic to the HttpClientHandler, now such code that was never having its request content disposed will start to, which is bad and exactly the opposite of what we want. It also causes problems for chains of handlers, e.g. if HttpClient is given a handler that wraps CurlHandler, and that handler expects to be able to look at the request content after the SendAsync Task from CurlHandler completes but before it itself completes its SendAsync Task. And while such a scenario may seem far fetched, we effectively have it in the bits today: the diagnostic handler that's used to pass details off to DiagnosticListeners is injected in the middle like this, and it does pass off the request content after the wrapped SendAsync Task completes... if a listener was expecting a non-disposed request content at that point, it would be sorely disappointed.
- Simply stop disposing.  The primary downside here is existing code that may have expected disposal to happen, e.g. if a StreamContent wrapping a FileStream isn't explicitly disposed of by the app code, cleanup of the FileStream will be left to its finalizer.

The least bad option is to simply stop disposing.  This PR makes that change.


Commit migrated from https://github.com/dotnet/corefx/commit/6d06c39857f8bb7a798ca118944d25a43aaa8beb
2017-04-28 07:13:43 -04:00
David Shulman 3505e5abfd Root cause System.Net.Requests test failures on NETFX
Finished investigation of failures on .NET Framework for
System.Net.Http.

Added specific NETFX test changes where necessary. Opened up additional
bugs for investigation.

Added missing parameter validation for HttpClientHandler.MaxConnectionsPerServer
for the net46 OOB. This matches .NET Core now.

Removed some test code that was incorrectly trying to do CredentialCache.Add()
with a 'basic' authtype and using DefaultCredentials. This is invalid and
throws exception on netfx. Added dotnet/corefx#18870.

Remove PlatformNotSupportedProxy test code. It was throwing an exception
on netfx and the purpose of it didn't seem to make sense in the one test
that was using it.

Fixes dotnet/corefx#17691.


Commit migrated from https://github.com/dotnet/corefx/commit/b1246c7f1ee1d9e42594988073fd06580d23fe84
2017-04-24 14:09:31 -07:00
Viktor Hofer ebb1c635a9 Removed ActiveIssue comment in favor of explanation why this behavior is intended on Windows
Commit migrated from https://github.com/dotnet/corefx/commit/8fd9800cab67fe7eac59be441eadaec048234ed1
2017-04-15 13:49:27 +02:00
David Shulman fb0d9456d4 Adjust tests to check for proper Windows 10 update version
Remove unneeded old Windows 10 version check (IsWindows10VersionInsiderPreviewOrGreater).
Use the official Windows 10 Creators Update version number 1703 (build 15393) which is
already defined (IsWindows10Version1703OrGreater).

Fixes dotnet/corefx#8945, dotnet/corefx#10958


Commit migrated from https://github.com/dotnet/corefx/commit/d56c8d1185fdea71e0c210d8ab3d111a40dc3047
2017-04-04 13:04:59 -07:00
David Shulman 75d4e8ad18 Fixes for running Http tests against Desktop
Got the Http Functional tests running with no errors against NETFX (Desktop). Found a bunch
of compatibility differences between Desktop and Core that need to be investigated. For now,
the tests are skipped on Desktop.

Fixed the LoopbackServer so that it will run. It was blowing up with `MissingTypeException`
due to missing SocketTaskExtensions class (dotnet/corefx#17690).

Contributes to dotnet/corefx#17691


Commit migrated from https://github.com/dotnet/corefx/commit/b7f6f5f159ebe6c0597578bbd858697a6159a22f
2017-04-01 09:28:32 -07:00
David Shulman 5fd3a239ce Modify HttpClientHandler compression default to match Desktop
Change HttpClientHandler property for AutomaticDecompression to match
original .NET Framework default. Adjust tests accordingly.

Contributes to dotnet/corefx#17691


Commit migrated from https://github.com/dotnet/corefx/commit/eb21a724bff127d3ab0c34240234ef93ac1a94fb
2017-03-30 13:36:49 -07:00
Santiago Fernandez Madero 4f7e250ed1 Disable test (dotnet/corefx#17692)
Commit migrated from https://github.com/dotnet/corefx/commit/755f816d20536dbf87c80baa411a6da00bf94203
2017-03-30 10:44:00 -07:00
Stephen Toub 6445d60d14 Add test for HttpClient handling of trailer headers
Commit migrated from https://github.com/dotnet/corefx/commit/fede47996025201929aedd25b815a30b1a348a47
2017-03-27 14:03:49 -04:00
David Shulman cb3f31107b Fix Http test regarding uri fragments and redirection
No real test code change. But confirming that this test needs to be
skipped on Windows 7 due to a bug in WinHTTP with preserving fragments
in an uri during redirection. The WinHTTP bug was fixed in Windows 8.

Fixes dotnet/corefx#16133.


Commit migrated from https://github.com/dotnet/corefx/commit/7e1e66eb04075cbd69469c7498c4b04bd5db396b
2017-03-21 08:05:02 -07:00
Lakshmi Priya Sekar 6d612b34a7 Disable networking test on Windows7 pending investigation. (dotnet/corefx#16171)
Commit migrated from https://github.com/dotnet/corefx/commit/ee4ef6966d1e38726702923b19515b324b06530c
2017-02-14 21:14:54 -08:00
sepidehMS 016f9b537d Remove unnecessary PlatformSpecific labels from tests
Commit migrated from https://github.com/dotnet/corefx/commit/3294b7172c51869892debba78d774a4e1f382cd5
2017-02-07 15:46:35 -08:00
Lakshmi Priya Sekar 6bff1b3000 Fix networking test activeissues in System.Net.Http
Commit migrated from https://github.com/dotnet/corefx/commit/dd65f89ef9806067779eb63b884d9317dad68202
2017-02-03 12:31:59 -08:00
Stephen Toub 27e985cfa3 Replace "readonly static" with "static readonly"
There are ~4000 occurrences in corefx of "static readonly".  There are ~200 occurrences of corefx of "readonly static".  Replacing all of the straggler "readonly static" cases with "static readonly" to make things consistent.


Commit migrated from https://github.com/dotnet/corefx/commit/d9d1e815ad6c642cf5d61afa4a16726548598bb2
2016-12-09 10:27:00 -05:00
Stephen Toub 5c80441a2c More aggressively clean up disposable resource in Http tests
Most of these likely don't matter, but some of these can be keeping alive the underlying connections associated with the HttpClient instance, and it's possible that can lead to more resource contention / exhaustion.


Commit migrated from https://github.com/dotnet/corefx/commit/ec47d4e19f3215f75e652e8e5ff61cc4c253c056
2016-11-03 11:18:27 -04:00
David Shulman 637fa2d8b0 Disable another test
Ref dotnet/corefx#13188


Commit migrated from https://github.com/dotnet/corefx/commit/804d3aea2539aa1be5b49b94204f070cb134444b
2016-10-31 14:07:51 -07:00