Commit Graph
1421 Commits
Author SHA1 Message Date
Geoff Kizer 47c423424d fix IDNA host name handling in proxy case, and add some IDNA tests
Commit migrated from https://github.com/dotnet/corefx/commit/36eb70cb80ec368df52ffd9b2257317bae8bdb47
2018-01-22 12:26:18 -08:00
Geoff Kizer 64ed728642 make dribble test slightly more useful
Commit migrated from https://github.com/dotnet/corefx/commit/3b5eb942de8f4d2d505d5268baf0ad415bd66651
2018-01-22 12:26:17 -08:00
Geoff Kizer dfff781f66 fix issue that was causing duplicate test execution
Commit migrated from https://github.com/dotnet/corefx/commit/c512fae6eb54ffdbc6201e4a0b4491fa37a99e91
2018-01-22 12:26:16 -08:00
Geoff Kizer 1a3a066c91 don't check for http/2.0 in response, since we will never see it
Commit migrated from https://github.com/dotnet/corefx/commit/5111a66abfcdcd4e7a312eb2695a8b247e3b1dbd
2018-01-21 00:55:29 -08:00
Geoff Kizer ba9291d12b fix proxy auth retry handling and related comment
Commit migrated from https://github.com/dotnet/corefx/commit/c0959d627ede51e69b26563552466f217591df09
2018-01-21 00:55:28 -08:00
Tomas Weinfurt d7d3bdd9b7 disable failing tests (dotnet/corefx#26197)
* disable failing tests

* add missing newline


Commit migrated from https://github.com/dotnet/corefx/commit/1efbd8e15fa6747215511cd492aa5a5f9c7e315d
2018-01-05 16:43:40 -08:00
Geoff Kizer 7e9be81a44 Merge pull request dotnet/corefx#26135 from geoffkizer/enablehttpclientssltests
reenable ssl tests

Commit migrated from https://github.com/dotnet/corefx/commit/e2b951c3f9bb119d9293078061d7821953bfdc19
2018-01-04 09:39:24 -08:00
Geoff Kizer 00e680fa3a reenable ssl tests
Commit migrated from https://github.com/dotnet/corefx/commit/085e8d014a0eb5f470bc9748d16f24d86590e9d5
2018-01-03 13:13:44 -08:00
Ben Adams 2f11d40460 Don't capture AsyncLocals into HttpConnectionPools timer (dotnet/corefx#26068)
* Don't capture AsyncLocals into HttpConnectionPools timer

* Harden EC flow suppression


Commit migrated from https://github.com/dotnet/corefx/commit/d425f867cfac9889580bd384f7f4cc6b92673994
2018-01-03 09:26:18 -05:00
TylerBrinkley cf00b35da6 Added license comments
Commit migrated from https://github.com/dotnet/corefx/commit/98bef0d6aa268bffd640e9de165a670157b4fb28
2018-01-02 10:59:23 -06:00
Tyler Brinkley 9d61820b00 Made tests only apply to netcoreapp
Commit migrated from https://github.com/dotnet/corefx/commit/dff5efc1c3630e40c961d01049afd35475a29221
2018-01-01 21:00:31 -06:00
TylerBrinkley 9bfaec2d68 Added functional tests.
Commit migrated from https://github.com/dotnet/corefx/commit/d67255e150d3a12cabdc832c523be1c79db53e03
2017-12-22 13:53:08 -06:00
TylerBrinkley cfb084a025 Updated reference folder
Commit migrated from https://github.com/dotnet/corefx/commit/17350bf08b68335cdc254c16b29cf9edd521b48a
2017-12-22 11:17:50 -06:00
TylerBrinkley d64dd6fc5a Added native support for the HTTP PATCH verb.
Commit migrated from https://github.com/dotnet/corefx/commit/8f527bfe6f4d5f3f64a158710e2fa33d1454c080
2017-12-22 11:02:46 -06:00
Ahson Khan 7886be085d Convert uses of the Dangerous APIs to use MemoryMarshal.GetReference (dotnet/corefx#25936)
* Convert uses of the Dangerous APIs to use MemoryMarshal.GetReference

* Fix unresolved merge conflict.

* Add using directive

* Add missing using directives.

* Add references to System.Memory


Commit migrated from https://github.com/dotnet/corefx/commit/40cbd5636851093309b841db4d53af369b7ef1c6
2017-12-21 11:05:06 -08:00
Lakshmi Priya Sekar 3b52529fa4 Respond to pr feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/c9a8b39eb6d78694b715b1d69f9b16409402490f
2017-12-14 15:08:43 -08:00
Lakshmi Priya Sekar 6ca6529323 Use generic test handling for remote server failures.
Commit migrated from https://github.com/dotnet/corefx/commit/d37b86ecf8606f007b32c9d60f623f50c874c723
2017-12-13 17:01:30 -08:00
Stephen Toub c666617fbc Add missing Shutdown calls in HTTP loopback servers (dotnet/corefx#25694)
Commit migrated from https://github.com/dotnet/corefx/commit/dbfa1ebe3f41090c525990d4887bd64574b5124b
2017-12-04 22:04:44 -05:00
Jan Vorlicek 900c667b1d Fix Alpine CURL concurrency issue (dotnet/corefx#25692)
* Fix Alpine CURL concurrency issue

On Alpine Linux, CURL uses LibreSSL for its HTTPS needs. That creates
the same concurrency issue that we had with LibreSSL on OSX. It was
fixed for OSX only in the past by detecting which SSL library CURL uses
and using shared MultiAgent for all CurlHandler instances.
This change extends it to all Unixes, since if CURL uses LibreSSL on a
Linux distro, we need the same workaround.

* Reflect PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/736da1b995fd1cb1ef52279a5adfc6274afddf99
2017-12-05 03:02:17 +01:00
Tomas Weinfurt 16478c842b disable ProxySetViaEnvironmentVariable_DefaultProxyCredentialsUsed on windows (dotnet/corefx#25641)
* disable ProxySetViaEnvironmentVariable_DefaultProxyCredentialsUsed on windows. (managed handler)

* remove dead code and correct white sapces

* udate with suggestion from review

* convert \t to spaces.


Commit migrated from https://github.com/dotnet/corefx/commit/7bdd866d7711c2d766772ab50b5c8367f227a2eb
2017-12-01 23:17:14 -05:00
Lakshmi Priya Sekar 9d7df9b614 Merge pull request dotnet/corefx#25219 from tmds/curl_ssl_cert
Make curl http handler use SSL_CERT_FILE/SSL_CERT_DIR environment variables.

Commit migrated from https://github.com/dotnet/corefx/commit/6dda730bb78979c8963a18942ab65377323a36d6
2017-11-22 15:55:52 -08:00
Stephen Toub 81e619f5d6 Fully enable Memory<byte> in SocketAsyncEventArgs
We initially superficially implemented the Memory<byte> support, by extracting the underlying array from it.  But that a) doesn't work for things other than arrays, and b) doesn't allow us to play nicely with already pinned buffers.  This changes the implementation to actually store the Memory<byte> natively.


Commit migrated from https://github.com/dotnet/corefx/commit/7ef465b97109efaee4254334f6226db402554f38
2017-11-22 11:57:45 -05:00
Tom Deseyn eaea0196f2 Update tests for xplat differences.
Commit migrated from https://github.com/dotnet/corefx/commit/8d7cb8426886f4318ae98db571a52f9dab5efa10
2017-11-21 11:53:02 +01:00
Tim Seaward 6b6e07fbb9 Removing unneeded blocking from tests (dotnet/corefx#25399)
Commit migrated from https://github.com/dotnet/corefx/commit/49a62edcfe76f1c5f5e981144a301ba3ddc5feb2
2017-11-20 22:19:04 -05:00
Tom Deseyn f310758fc2 Fix test
Commit migrated from https://github.com/dotnet/corefx/commit/33622488472c61216fb3ca0851b30be658b85146
2017-11-20 14:46:11 +01:00
Tom Deseyn 9610a54b33 Clean-up test
Commit migrated from https://github.com/dotnet/corefx/commit/37b203a968f57ca4925795971bef9993926a86b2
2017-11-20 14:31:16 +01:00
Tom Deseyn 6d00842c13 Add test
Commit migrated from https://github.com/dotnet/corefx/commit/24f3d4d7096a54d46bdc1969475b55c01d04dce5
2017-11-20 14:26:57 +01:00
Stephen Toub 9b045a6f83 Throw when ManagedHandler's ConnectHelper completes sync but unsuccessfully (dotnet/corefx#25280)
Commit migrated from https://github.com/dotnet/corefx/commit/c280881a048ee9d9fbfc629ca55d755d3e2b045d
2017-11-15 21:47:00 -05:00
Stano Peťko 1a70106b96 File path is in IO exception messages (dotnet/corefx#25195)
* Added path to message Argument_InvalidPathChars.

* Added path to message IO_PathTooLong.

* IO_PathTooLong - separate message when path is empty.

* Added argument reference to message.


Commit migrated from https://github.com/dotnet/corefx/commit/51da21f9934c63216a8d7a2eb27ec5aa97944600
2017-11-14 23:09:24 -05:00
Lakshmi Priya Sekar 363a01fb05 Merge pull request dotnet/corefx#25090 from Priya91/managedauth
Reset auth settings on the request during redirect on managedhandler.

Commit migrated from https://github.com/dotnet/corefx/commit/35b0385bae7bf0049c355ccf8a7706304b16d3a5
2017-11-14 18:39:30 -08:00
Tom Deseyn 7515cacb4e Make curl http handler use SSL_CERT_FILE/SSL_CERT_DIR environment variables.
Commit migrated from https://github.com/dotnet/corefx/commit/2e3f4d5ce9a138423e6f93a736da0e077ff8c3de
2017-11-13 14:38:18 +01:00
Stephen Toub 3beac57295 Disable SendAsync_ExpectedDiagnosticCancelledActivityLogging test (dotnet/corefx#25207)
It's failing sporadically on outerloop, both Windows and Unix, both WinHttp/CurlHandler and ManagedHandler.

Commit migrated from https://github.com/dotnet/corefx/commit/4257c2226e039d4523f03404f323be4c36de2771
2017-11-12 15:28:09 -05:00
Lakshmi Priya Sekar 2c675cd34e Respond to PR feedback.
Commit migrated from https://github.com/dotnet/corefx/commit/0356a36032259753603a6018daa5d43cc688af32
2017-11-09 15:04:45 -08:00
Tomas Weinfurt a7a97cf3c8 ManagedHandler: move Debug.Assert(_writeOffset == 0) after code trying to handle that case (dotnet/corefx#25137)
* move Debug.Assert(_writeOffset == 0) after code trying to handle that case

* move Debug.Assert(_writeOffset == 0) after code trying to handle that case

* push assert down to ReturnConnectionToPoolCore()


Commit migrated from https://github.com/dotnet/corefx/commit/7d3cd2adff8272efcf1bc6e0bf1902de6fd9e8e9
2017-11-09 16:15:47 -05:00
Lakshmi Priya Sekar 4c8182b579 Mark tests hitting azure as outerloop.
Commit migrated from https://github.com/dotnet/corefx/commit/4a6a6aef06d3f8cbf5f9847ba7a241c15a4a20ff
2017-11-07 15:23:59 -08:00
Lakshmi Priya Sekar 7920e67372 Reset auth settings on the request during redirect on managedhandler.
Commit migrated from https://github.com/dotnet/corefx/commit/1daa3e97131ceb62741e56bd6a7e6450e9de1b5e
2017-11-07 15:18:14 -08:00
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
Krzysztof Wicher f3f741eade Use distro detection from Microsoft.DotNet.PlatformAbstractions (dotnet/corefx#24531)
Commit migrated from https://github.com/dotnet/corefx/commit/4bf90198c5e7710ea67b7c1b467e859ec8bb78e5
2017-11-03 14:30:47 -07:00
Stephen Toub 54c1d578d8 Mark applicable structs as readonly
Commit migrated from https://github.com/dotnet/corefx/commit/54e889a7c71bf22f9f1ef244a9d040fee64c74d5
2017-11-03 09:48:47 -04:00
Stephen Toub dfced62bc2 Add ManagedHandler support for cancelling connect operations (dotnet/corefx#24873)
Commit migrated from https://github.com/dotnet/corefx/commit/0e517d15d2a90aceffdd6bbc6c1de80b8582a154
2017-10-30 15:02:27 -04: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 3fc43905bc Fix DecompressionHandler ContentEncoding logic
Not clear what it's currently trying to do.  It should be simple.


Commit migrated from https://github.com/dotnet/corefx/commit/3c17c2251b4bda98273e57ef153cc9bc267805c8
2017-10-25 13:23:58 -04:00
Stephen Toub 06fe2c8c64 Reorder cookie handling in handler chain
It should come lower in the stack than proxy or credentials so that any responses that trigger re-requests and that have Set-Cookie headers are appropriately processed.


Commit migrated from https://github.com/dotnet/corefx/commit/8b5dced9d6b8df49c6dfa49af8015bd47f9a811d
2017-10-25 13:18:30 -04:00
Stephen Toub 5a9bb53af7 Make Expect: 100-continue handling more robust (dotnet/corefx#24789)
When libcurl sends an Expect: 100-continue header, if it gets back a success error code, it may avoid sending the remaining payload and also may keep the connection open, which can confuse servers that expect to receive the fully promised payload and that don't close the connection when sending a final success status code instead of 100 continue.  To mitigate this, we simply change the default ExpectContinue == null behavior to be the equivalent of ExpectContinue == false rather than to be "do whatever the platform decides".  This also more closely aligns with WinHttpHandler and ManagedHandler, where effectively the "platform" in those cases decides that the default is disabled.

For ManagedHandler, currently we're mimicking behavior like that libcurl employed and may sometimes not send the full payload but still keep the connection open.  Instead, make sure we either always send the full payload or close the connection.

Commit migrated from https://github.com/dotnet/corefx/commit/724ddb8fc95a5b1f639cfa508a32b9a8c50c1949
2017-10-23 12:29:26 -04:00
Stano Peťko 4d0dc88ac3 Remove dead code from System.Net.Http (dotnet/corefx#24735)
* Deleted dead code from System.Net.Http.

* Returned back strings, used in other platforms.

* Returned back string net_http_value_not_supported.

* Deleted dead code from System.Net.Http.

* Returned back strings, used in other platforms.

* Returned back string net_http_value_not_supported.


Commit migrated from https://github.com/dotnet/corefx/commit/cdc2a7a7c27ccfcf061913c8df6f9000ffdd919b
2017-10-19 23:37:31 -04:00
Lakshmi Priya Sekar bf6b1cf702 Merge pull request dotnet/corefx#24389 from Priya91/tlsextension
Add ALPN support for SslStream.

Commit migrated from https://github.com/dotnet/corefx/commit/57b4664ba0a022de3a846b436a3a3a6bf7b91ead
2017-10-19 11:08:08 -07: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
Geoff Kizer 3333dfede4 add more cases and make tests more robust
Commit migrated from https://github.com/dotnet/corefx/commit/a3cab9a48cc373eaf45a513d9c60895446c9bafc
2017-10-17 11:49:00 -04:00
Geoff Kizer cf5033763d add some basic protocol tests for status line handling
Commit migrated from https://github.com/dotnet/corefx/commit/79709c46a1e84ccae519ca58a12f9f29f0b64db5
2017-10-17 11:49:00 -04:00