Geoff Kizer
e220972236
clean up encoding handling
...
Commit migrated from https://github.com/dotnet/corefx/commit/3d2f149c5891ee9095de2b50877676b903002147
2018-02-05 11:09:59 -08:00
Geoff Kizer
eab53ef4e7
address review feedback
...
Commit migrated from https://github.com/dotnet/corefx/commit/4103b918249282a40b53e30f7825b9a22a35acff
2018-02-05 10:04:03 -08:00
Geoff Kizer
1869a9d1a1
support LF line endings and trailer headers
...
Commit migrated from https://github.com/dotnet/corefx/commit/85c943fb8388585a7d49a75b879844d68962a6ab
2018-02-02 01:21:27 -08:00
Geoff Kizer
a1337d4869
fix dribble tests when client disconnects on bad request ( dotnet/corefx#26730 )
...
Fixes dotnet/corefx#26729
Commit migrated from https://github.com/dotnet/corefx/commit/6f5d255a76a192906f692fd3d2b9104ab6aeb2f2
2018-02-01 06:21:36 -08:00
Geoff Kizer
d4cdf4d46d
Merge pull request dotnet/corefx#26708 from geoffkizer/httpretry
...
ManagedHandler: implement connection retry logic
Commit migrated from https://github.com/dotnet/corefx/commit/95bfb895707d5756d4b9693286672780f0a6ba02
2018-01-31 20:24:58 -08:00
Tomas Weinfurt
ba0964d681
add proxy configuration based on environment variables on Unix ( dotnet/corefx#26341 )
...
* initial attempt
* remove extra debug message and cleanup.
* take feedabck from reviews
* adress comments from review and add unit tests
* add missing variables to cleanup function
* fix more style and review comments
* updates suggested by geoff
* few more places s/Credientials/Credentials/
* refactor credentials handling
* more fixes to address review feedback
* include HttpProxyConnectionHandler.*.cs only for netcoreapp
Commit migrated from https://github.com/dotnet/corefx/commit/454220d87dc118a6cb039ef5bd68707de20b79a5
2018-01-31 15:46:27 -08:00
Paulo Janotti
a9bb9f1ab7
Separate basic auth test cases for HttpClientHandler ( dotnet/corefx#26713 )
...
Separating the test cases between compliant and non-compliant names. Related to dotnet/corefx#23135
Commit migrated from https://github.com/dotnet/corefx/commit/62a3d898ceb94227b2b03462b5b09f0a7cd4e3a8
2018-01-31 15:37:08 -08:00
Geoff Kizer
4db480c02e
address review feedback
...
Commit migrated from https://github.com/dotnet/corefx/commit/87ff7479b35c3df7b1a5381447d89c42e2463bc7
2018-01-31 15:04:18 -08:00
Geoff Kizer
6239288b27
Merge pull request dotnet/corefx#26585 from geoffkizer/httpversionhandling
...
clean up request and response version handling in managed handler
Commit migrated from https://github.com/dotnet/corefx/commit/2e10ed5418bac7b6b47a407b7efb28ccfcbc9f21
2018-01-31 10:19:41 -08:00
Geoff Kizer
694a7a6172
implement connection retry logic and related changes
...
Commit migrated from https://github.com/dotnet/corefx/commit/64976bf062b6cbc55a3e708dbf7116188d075ff1
2018-01-31 10:03:23 -08:00
Paulo Janotti
1542b4278f
Make redirect test case really 'redirect' ( dotnet/corefx#26674 )
...
The test case was redirecting to the same URL this was bringing instability with the handlers (more with the managed). This change should make the test more reliable, as such moving it to inner loop.
Fixes dotnet/corefx#23769
Since no action is planned for dotnet/corefx#26434 this also closes dotnet/corefx#26434
Commit migrated from https://github.com/dotnet/corefx/commit/3b69635f25636377841ded02de254eacec6e3728
2018-01-30 13:26:09 -08:00
Paulo Janotti
8e297658e1
Http protocol dribble tests taking two long ( dotnet/corefx#26680 )
...
The time of inner loop is dominated by the http protocol dribble tests.
Returning the Task.Delay to Task.Yield reduces it from ~19 seconds to less than a second on a Windows 10 RS3 box.
Commit migrated from https://github.com/dotnet/corefx/commit/179cf080901f8f7f4e5499b80ad393b7370eef40
2018-01-30 16:06:51 -05:00
Tomas Weinfurt
8492f6e784
merge positive and negative test to one. add more test cases
...
Commit migrated from https://github.com/dotnet/corefx/commit/6457d8102bc6527b8a5277c7cc4838a497cf2e48
2018-01-29 17:14:05 -08:00
Tomas Weinfurt
3af560535e
update from reviews. refactor opaque handling, make realm mandatory and add negative test case.
...
Commit migrated from https://github.com/dotnet/corefx/commit/dd1d93fc8a25343ab15360e368a0c7d900355c34
2018-01-29 16:26:52 -08:00
Geoff Kizer
5a33c6658b
fix CurlHandler test for 2.0 response
...
Commit migrated from https://github.com/dotnet/corefx/commit/b91b6c63aa3678ba707a9900b64eea9f8e0a6d00
2018-01-29 13:31:18 -08:00
Tomas Weinfurt
bbfbb9779f
make opaque parameter optional
...
Commit migrated from https://github.com/dotnet/corefx/commit/a623ebc34fd63d85b65af7ed91a967d37cf1d906
2018-01-28 22:43:47 -08:00
Geoff Kizer
95dd8bdc14
update tests to correctly test existing behaviors of different handlers
...
Commit migrated from https://github.com/dotnet/corefx/commit/380f45c16b952d5064002de0d8e936a38a49d276
2018-01-26 01:32:59 -08:00
Caesar Chen
2181b942d1
Enable some HttpProtocolTests test cases and skip them on .NET Core Windows run ( dotnet/corefx#26573 )
...
* split test cases
* disable against CurlHandler as well
* address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/e274885db32ec40b327ed4dcb3439aca41d29844
2018-01-25 15:57:38 -08:00
Geoff Kizer
30b5d75f43
address review feedback
...
Commit migrated from https://github.com/dotnet/corefx/commit/7ec77a68174759e3d04b242e2c82cdb30055c9c3
2018-01-25 12:22:33 -08:00
Geoff Kizer
79e1348226
clean up request and response version handling in managed handler, and add tests
...
Commit migrated from https://github.com/dotnet/corefx/commit/a1bf78551ff6de29ea02837a21620000886b2828
2018-01-24 23:17:21 -08:00
Geoff Kizer
a7a639d293
Merge pull request dotnet/corefx#26511 from geoffkizer/mischttp1
...
Several small ManagedHandler fixes
Commit migrated from https://github.com/dotnet/corefx/commit/25c4a916bf1f35be1d009b679b19f7ebea535647
2018-01-24 21:47:48 -08:00
Caesar Chen
266628de65
Enable HttpProtocolTests test cases on .NET Core ( dotnet/corefx#26525 )
...
* split test data
* address pr feedback
* revert part of changes, and track disabled test data by new issue
* disable a Unix test case
Commit migrated from https://github.com/dotnet/corefx/commit/2836df39b74713ce26dadbd9bd3448dffbf3bf30
2018-01-23 18:56:14 -08:00
Paulo Janotti
abeece37dd
Disable 307 LargePayload again ( dotnet/corefx#26547 )
...
Test failed with managed handler again, disabling before further
investigation.
Commit migrated from https://github.com/dotnet/corefx/commit/19aa9ff4bb0ba7a73a502fe0e5557f7653b7035e
2018-01-23 08:34:32 -08:00
Geoff Kizer
77f565e3df
move managed handler test class to ManagedHandlerTest.cs
...
Commit migrated from https://github.com/dotnet/corefx/commit/0f22f460b5731f4a8ca2c75c84277dd152d001a9
2018-01-22 17:52:40 -08:00
Geoff Kizer
71e644b3d1
disable IDNA tests on full framework
...
Commit migrated from https://github.com/dotnet/corefx/commit/bc64832720692b8623c0ab9df3882cc2970d6089
2018-01-22 17:04:53 -08:00
Geoff Kizer
809c37daab
disable IDNA tests for uap and WinHttp on Win7
...
Commit migrated from https://github.com/dotnet/corefx/commit/c3e19a9a1dc18c811aef9ebb55a827b93eabc2cc
2018-01-22 13:23:25 -08:00
Geoff Kizer
d0b752b99e
address review feedback and add some more international host names to test
...
Commit migrated from https://github.com/dotnet/corefx/commit/8bb53d4a7621852355a77c21c6f749d4c7b7e98a
2018-01-22 13:03:07 -08:00
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
Paulo Janotti
0e728cc09a
Enable ClientAndServer_OneOrBothUseDefault_Ok test ( dotnet/corefx#26463 )
...
* Enable ClientAndServer_OneOrBothUseDefault_Ok test
Protected against error in old versions of Windows and updated assert to
include the case when hash algorithm can be Sha1.
Fixes dotnet/corefx#7812 (actual fix done on Windows, just re-enabling affected tests
with proper guard)
* Waiting for tasks w/ test cfg wrapper
* Skip test on Windows 7
On Windows 7 only Tls is supported OOB, so only few test cases can
actually pass. Others fail with:
```
System.Security.Authentication.AuthenticationException : A call to SSPI
failed, see inner exception.
---- System.ComponentModel.Win32Exception : The client and server cannot
communicate, because they do not possess a common algorithm
```
Commit migrated from https://github.com/dotnet/corefx/commit/9f858d067d7484f8d8b06a3f92e646f422a0c804
2018-01-19 19:46:32 -08:00
Paulo Janotti
be838e8850
No local repro for dotnet/corefx#23768 , re-enabling test ( dotnet/corefx#26399 )
...
* No local repro for dotnet/corefx#23768
Not to be committed as it is, just to check CI run.
* Re-enale LargePayload test in OuterLoop
The LargePayload test did not fail in various local runs and in CI,
re-enabling it.
Fixes dotnet/corefx#23768
Commit migrated from https://github.com/dotnet/corefx/commit/b265a0f0066dbce3cf4845c25444fe85266c81d0
2018-01-19 12:49:30 -08:00
Lakshmi Priya Sekar
03b324c1dc
Merge pull request dotnet/corefx#26374 from Priya91/spandigest
...
Remove unsafe in parsing string in Digest auth.
Commit migrated from https://github.com/dotnet/corefx/commit/94b995e3c1b28e08cb442b2e94c6ab0e276a0285
2018-01-19 10:19:27 -08:00
Paulo Janotti
3291b94ec7
Test: ignore specific WinHttpException on old Windows versions ( dotnet/corefx#26428 )
...
The root cause issue was already fixed in Windows but old versions still
hit this issue. This change makes the failing test to ignore the known
issue on these old Windows versions.
Fixes dotnet/corefx#7812 (just so GH closes the issue at merge time, the actual issue
was fixed in Windows).
Commit migrated from https://github.com/dotnet/corefx/commit/f345a2251bcb57d3a64e03efc63dafb76319dc20
2018-01-19 09:58:49 -08:00
Tomas Weinfurt
a6eb3f0169
Add ability to enable ManagedHandler via runtime config ( dotnet/corefx#26403 )
...
Add ability to enable managed handler via System.Net.Http.UseManagedHttpClientHandler AppContext setting
Commit migrated from https://github.com/dotnet/corefx/commit/95882ec00ed2cf8ea85b9dd2ee645a8efa2ff20f
2018-01-19 08:43:16 -08:00
Lakshmi Priya Sekar
3fed718665
Remove unsafe parsing code from DigestResponse.
...
Commit migrated from https://github.com/dotnet/corefx/commit/9baef43e0b65f0d4da06122fd0c5dfcf56cc2384
2018-01-18 13:49:37 -08:00
Geoff Kizer
a18e1512c4
remove preauth handling for digest
...
Commit migrated from https://github.com/dotnet/corefx/commit/452bcdba0128468b5f2d2fbca9cb78649c770010
2018-01-13 13:00:15 -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