Commit Graph
73 Commits
Author SHA1 Message Date
stephentoub ba797defff Replace Substring(...).Trim() with SubstringTrim(...)
System.Net.WebHeaderCollection already had a SubstringTrim helper that's used instead of Substring(...).Trim() to avoid first creating the substring and then trimming it, instead just offsetting the startIndex and length appropriately to do the Substring once.

I've factored this helper out into Common, added unit tests, cleaned it up a bit, and used it in several more places in System.Net.


Commit migrated from https://github.com/dotnet/corefx/commit/4e45e641c9d97c3a5d3b6fec4f6ffc33a2405fee
2015-10-28 12:29:59 -04:00
stephentoub 2a4056ca09 Trim response headers in CurlHandler
Apply same header response trimming done by WinHttpHandler.
Fixes dotnet/corefx#4187

(At some point I'd like to go through and replace all Substring(...).Trim() calls with a more efficient SubstringTrim(...) that doesn't allocate an intermediate string.  But in the meantime, this addresses the problem.)


Commit migrated from https://github.com/dotnet/corefx/commit/a5053a14559ea30d224bf9f74892c86435d9166b
2015-10-27 22:47:56 -04:00
David Shulman 989c6f95bc Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/d9842e88757ebc10c472d96008ec6b627433219f
2015-10-27 17:26:12 -07:00
David Shulman a0239a721e Disable tests on Linux
Commit migrated from https://github.com/dotnet/corefx/commit/ae49b8e5428e509920b722912649e9a733cd1a3d
2015-10-27 16:51:09 -07:00
David Shulman 4b3de626c1 Removed commented-out code.
Commit migrated from https://github.com/dotnet/corefx/commit/79e3350eec6c9fdee9081f9d3dd8b42fe574ada3
2015-10-27 15:29:43 -07:00
David Shulman c8432253b4 Add HttpClient tests to support all HTTP verbs
Added tests for validating against all standard and custom HTTP verbs. These tests use the new networking test server.

Cosolidated some existing tests that were duplicative. More test porting and reorganzing will be done in later PRs.


Commit migrated from https://github.com/dotnet/corefx/commit/057f0a9bc938606f9e3a24a51f64f3a4fd9bbb55
2015-10-27 15:03:29 -07:00
Hemanth Kapila 3fd7c5ee4f Support for http delete and other methods for CurlHandler
Update CurlHandler to allow sending Http 'delete', 'options' and etc
Add two test cases for delete
Add two test cases for options

Support for other Http methods

Added tests for options as well


Commit migrated from https://github.com/dotnet/corefx/commit/20819227e708d42db9c3c4f8b7c0fd13180da777
2015-10-27 21:15:04 +05:30
David Shulman 7421388e81 WinHttpHandler: Fix POSTs with zero length content
While researching dotnet/corefx#3292, I discovered that POST'ing zero length content throws an exception. This was because we were calling WinHttpWriteData() and passing in a zero length for the buffer size. This returns an error back from WinHTTP.

We don't need to call WinHTTP APIs to write zero length data. We simply need to return a completed task back to the caller.

Added tests to verify the fix.


Commit migrated from https://github.com/dotnet/corefx/commit/0776e741430e83fe72bf4be544701f0eeddce042
2015-10-23 15:19:30 -07:00
stephentoub bc5024849b Fix CurlHandler deadlock with synchronous CopyToAsync
CurlHandler calls to HttpContext.CopyToAsync with a stream that CopyToAsync should write to asynchronously.  If, however, the call to CopyToAsync writes to it synchronously as part of the synchronous call to CopyToAsync, CurlHandler will deadlock.

As a precaution, we ensure that the CopyToAsync call is asynchronous from the perspective of CurlHandler.


Commit migrated from https://github.com/dotnet/corefx/commit/ebad2d3426af24201526263401fb010a78ee60bd
2015-10-23 08:24:18 -04:00
Stephen Toub 544c9f5354 Merge pull request dotnet/corefx#4078 from davidsh/requeststream_hang
Fix hang when writing request stream in WinHttpHandler

Commit migrated from https://github.com/dotnet/corefx/commit/e715350896154fc554f4d995c0c1294d6535ce08
2015-10-23 08:19:58 -04:00
David Shulman e4f15565ba Disable test on Linux
Commit migrated from https://github.com/dotnet/corefx/commit/775f07fac48137520e66b848fc9cf29428ebf07a
2015-10-22 20:13:39 -07:00
David Shulman 779afbe587 Fix hang when writing request stream in WinHttpHandler
WinHttpHandler was hanging due to blocking on the WinHTTP status callback thread. The blocking was coming from a task continuation resuming on the same thread and subsequently calling a blocking Stream.Write method in a custom HttpContent class being written onto the request stream.

Blocking is not allowed on the WinHTTP callback thread. So any task continuations need to occur on a different thread. The fix is to create the TaskCompletionSources to use RunContinuationsAsynchronously. This allows them to unblock the WinHTTP thread. Additionally, I added some missing ConfigureAwait(false) settings to some await'd operations.

Added a new test which uses a custom HttpContent class that uses a blocking Write() call when serializing onto the request stream.

Fix dotnet/corefx#4077


Commit migrated from https://github.com/dotnet/corefx/commit/babb7c6c65bf1e02dab667cbda80f0e24af21ed8
2015-10-22 16:44:06 -07:00
Matt Ellis f23deed6ba Merge 'upstream/master' into from-tfs
Conflicts:
	src/Common/test-runtime/project.lock.json
	src/System.Reflection.TypeExtensions/src/project.json
	src/System.Reflection.TypeExtensions/src/project.lock.json


Commit migrated from https://github.com/dotnet/corefx/commit/262aebcb35b4e0b09b1e08d37cdd70de3fb092e8
2015-10-22 13:15:56 -07:00
Hemanth Kapila 9bdfc50043 Test case for default state of HttpClientHandler.CookieContainer
Adding a new test case that verifies that httpClient does not send any cookie unless set


Commit migrated from https://github.com/dotnet/corefx/commit/7550e8bdd3af85f322fd309f412f919a6cd4f150
2015-10-22 20:22:19 +05:30
Eric St. John 8cc3c24b51 Update lock files that were missed in previous restore.
A change was made to DNX to no longer restore project.jsons
that are in nested folders.  This caused my batch update to miss
a number of tests and reference assembly projects.

This fixes the stale lock files, but restore is still broken.

[tfs-changeset: 1540448]


Commit migrated from https://github.com/dotnet/corefx/commit/3622cccc1b22fa1947a72d5126b59864e9d2fd0d
2015-10-21 18:59:09 -07:00
Eric St. John 543808303a Update dnx to v1.0.0-rc1-15838, update dotnet projects to generations
We need a new DNX to understand the latest packages.

We also need to move all "dotnet" projects to use dotnetX.X (generations)
now that the packages no longer have "dotnet" assets.

The new version of DNX dropped support for the aspnetcore
so I needed to update a few projects/packages that depended
on old package versions that had this moniker.

[tfs-changeset: 1540388]


Commit migrated from https://github.com/dotnet/corefx/commit/38f8d7a3ca1ee819c2b8eabb1c07ee4e99683c97
2015-10-21 17:03:48 -07:00
bartonjs a768025131 Update all project.lock.json files
Built Windows_NT, Linux, OSX with /p:LockDependencies=true.

CoreFX beta-* => 23419
xunit.netcore.extensions => 00107


Commit migrated from https://github.com/dotnet/corefx/commit/a14b22705df253508bd5f2dab0407bd2c7e4d639
2015-10-19 16:00:44 -07:00
David Shulman 4640c3cefb WinHttpHandler uses async WinHTTP patterns
This is a large PR and addresses work item dotnet/corefx#3000. I apologize for not being able to structure it in a series of smaller commits.

The bulk of this PR is switching WinHttpHandler to use the async pattern of calling WinHTTP APIs. This involved a significant restructuring of the code. As part of that, I split up the large WinHttpHandler class into multiple, smaller, helper classes.

While the intent of using async WinHTTP calls is better performance and cancel-ability, this PR has not been fully optimized yet. Due to the schedule of RC1 code complete next week, it's important that this PR get in and get mileage on it in the next few weeks.

There are several TODO items that will be done in later PR's. There is still work being tracked in dotnet/corefx#2165 for various follow-up items. For example, re-conciling the best SafeHandle pattern to use for WinHTTP between WebSockets.Client and WinHttpHandler.

I'm currently using a simple Debug.WriteLine for verbose debug logging which can be turned on/off via environment variable. I plan to switch this to System.Net ETW trace loggers in the next commit and/or PR. But the logging has proved very useful in diagnosing issues.

Please provide feedback. Depending on the feedback, some of it will be marked as follow-up items for future PRs.


Commit migrated from https://github.com/dotnet/corefx/commit/d8e5371a5d0f9f4bb3aa85127cb78adf89dde1fb
2015-10-16 13:33:35 -07:00
Stephen Toub 88310b6bc9 Merge pull request dotnet/corefx#3806 from kapilash/rewindable
PreAuthenticate fix

Commit migrated from https://github.com/dotnet/corefx/commit/625b9bd2dcb8809455cddaf0c882d87bdfcc682c
2015-10-14 12:48:15 -04:00
Hemanth Kapila 3b56433cf5 PreAuthenticate fix for CurlHandler
When CURLOPT_HTTPAUTH is set to 'any', libcurl will always try to make more than one call to figure out the
right authentication scheme needed by the server. This breaks the behavior when PreAuthenticate is set to true.
The fix is to iterate over available schemes and set the auth-scheme flags to only those that are available.
Also, while updating the CredentialCache, we ignore ArgumentException (raised when the cache contains the given url and scheme pair)
Throw exception when network credentials are different for auth schemes


Commit migrated from https://github.com/dotnet/corefx/commit/17fdc686de07b9f9711956eea25e6c0c9042cd17
2015-10-14 14:45:43 +05:30
David Shulman 02c17e7794 Re-enable test of *Nix
HttpContentTest.ReadAsStringAsync_SetInvalidCharset_ThrowsInvalidOperationException
can be re-enabled due to fixes in the CoreCLR for System.Text.Encoding on
*Nix.  This fixes dotnet/corefx#3343.


Commit migrated from https://github.com/dotnet/corefx/commit/58b40540cf56a43469ccb1cee1323cfc392aa4aa
2015-10-13 18:40:08 -07:00
stephentoub 7e62766fa3 Fix CurlHandler to only wrap IOExceptions
When a failure occurs, we're currently wrapping all exception types except for HttpRequestException.  To match the desktop and WinHttpHandler behavior, we should only be wrapping IOExceptions.


Commit migrated from https://github.com/dotnet/corefx/commit/993e5f482a6ebbf9c1a19092dd9b93d70008f812
2015-10-12 15:48:00 -04:00
stephentoub eab8ad6e54 Update CurlHandler to use HttpContent.CopyToAsync
To get a request content stream, CurlHandler currently uses the
HttpContent's ReadAsStreamAsync, and when libcurl needs to rewind the
stream, CurlHandler seeks on the stream.

Unfortunately, it turns out ReadAsStreamAsync isn't actually intended to
be used by handlers in this manner, and as such there are some
deficiencies that lead to correctness problems.  For example, some of the
WCF HttpContent-derived types return non-seekable streams from
CreateContentReadStreamAsync and thus from ReadAsStreamAsync.  This means
that, using ReadAsStreamAsync, if we need to resend a request, we need to
call ReadAsStreamAsync again. But ReadAsStreamAsync doesn't do the same
_contentConsumed check that SerializeToStreamAsync does. That means if the
content is actually a StreamContent, whose CreateContentReadStreamAsync
just does ```return Task.FromResult(new
ReadOnlyStream(this._content));```, and if the stream is non-seekable,
then we'll end up getting back the "new" stream but that's already had its
content consumed, and we won't know. We can't even try to do an object
reference comparison, because StreamContent is wrapping the returned
stream in a new ReadOnlyStream instance each time.  The recommended
approach for handlers is to use HttpContent.CopyToAsync.

CopyToAsync is a push-based model, letting the HttpContent write to a
target stream.  CurlHandler/libcurl have a pull-based model, with
CurlHandler ReadAsync'ing from the request content based on callback from
libcurl.  To straddle this divide, this commit adds a specialized
push/pull adapter stream that let's CurlHandler effectively read from the
pushing source.  If/when libcurl asks to rewind, the stream resets itself
by doing a new CopyToAsync operation.

This revised approach does incur more costs, however care has been taken
to try to minimize those overheads as much as possible, and the change is
necessary for correctness.


Commit migrated from https://github.com/dotnet/corefx/commit/3678490e2d53d9a9fca6c7e50daadd7152b836f7
2015-10-12 15:47:59 -04:00
stephentoub ba9fea449f Reorganize src\Common\tests
Our common tests folder has gotten a bit unwieldy in its organization.  This change simply moves files around to better map to how src\Common\src is organized.  Files are now stored in a path based on functionality/namespace.

I mostly kept groups of functionality together and did not attempt to reorganize at that level, e.g. I moved the src\Common\tests\System.Xml.XPath\ folder to be src\Common\tests\System\Xml\XPath\ and did not further reorganize all of the folders/files it contains.  Such cleanup can be done separately on each individual area.

Some of the files also need to be cleaned up internally, e.g. the namespace (or lack thereof), so I put such things in a path that I thought made sense even if it differs from the current namespace in the file; I wanted this change to be relatively simple and just be about moving files around to clean up the main hierarchy.


Commit migrated from https://github.com/dotnet/corefx/commit/9a5546c439f7700d3462564678aa4206c7fbf4f1
2015-10-11 15:44:39 -04:00
stephentoub 4d0f06a262 Re-enable HttpClient encoding tests on Unix
Commit migrated from https://github.com/dotnet/corefx/commit/6f8fb64d2a994dc120b1ab539d0a2e93030c6663
2015-10-09 16:14:25 -04:00
David Shulman e45cc6afdf Add test to verify default values for HttpClientHandler
Ported this test to GitHub.

Note that the change in default values between Desktop and CoreFx for two
of the properties is an "intentional, improving, change".


Commit migrated from https://github.com/dotnet/corefx/commit/7aa4a1f71640351230943fa06f51602cb2c07cb3
2015-10-08 15:35:10 -07:00
David Shulman b7b2027a1e Add more HTTP tests
Ported some missing tests to GitHub. Cleaned up some of the existing
tests.


Commit migrated from https://github.com/dotnet/corefx/commit/870810a3a50b41acc088a907dd7a5ea88a214ec8
2015-10-08 14:05:35 -07:00
David Shulman d27860b628 Add more tests for System.Net.Http library
Ported more HTTP related tests.  These tests focus mostly on POST
scenarios mixed with authentication, pre-authentication, and the
"rewind-ability" of content if it needs to be re-POST'd due to AUTH
challeges by the server.

Added a new HttpTestServers2 class to Common/tests/System/Net. This is a
point-in-time thing as we improve the test infrastructure capability. In
particular, we are moving away from the use of the "httpbin.org" server.
Our new networking test server that we are bringing up has more features
than httpbin.org. It can support all the main HTTP verbs when doing "echo"
of request headers. It includes a "Content-MD5" HTTP response header. This
contains a hash of the response body. This makes it easier to validate the
returned payloads. The "httpbin.org" server also has a bug where it does
not properly echo chunked upload headers which was causing issues when
trying to port these tests.

I did not change other networking tests still using "httpbin.org" and the
Common HttpTestServers class. I will be doing that later as we finalize
the test infrastructure.


Commit migrated from https://github.com/dotnet/corefx/commit/f14225a7355bdae2468bb3c28562da0a0976f206
2015-10-07 10:49:56 -07:00
Stephen A. Imhoff 9fb3950e79 Remove custom error checking from System.Net.Http, per dotnet/corefx#516
- Use ShouldNotBeInvokedException to explicitly state some callbacks
should not be invoked.


Commit migrated from https://github.com/dotnet/corefx/commit/f333a31abbe1de0feb8a79b348aedb6e21d9c67e
2015-10-03 10:24:55 +09:00
stephentoub 613a87d035 Add explicit 0 index args to Array.Copy usage
Array.Copy is implemented to work with any System.Array, not just T[].  When Array.Copy(sourceArr, destArray, length) is used, it delegates to Copy(sourceArr, sourceIndex, destArray, destIndex, length), and as such needs to query for the lower-bound of the supplied arrays, since although a T[] in C# always has a lower-bound of 0, an arbitrary Array may not.  Given this, when calling Array.Copy, instead of calling Array.Copy(src, dest, length), it's slightly more efficient to just call Array.Copy(src, 0, dest, 0, length), avoiding the need for the GetLowerBound calls made while delegating to the 5-arg version.

I noticed one occurrence of this in some code I was looking at, and while fixing that, I fixed all of them across corefx\src.


Commit migrated from https://github.com/dotnet/corefx/commit/979026e435672e611e3f6e0647c873aa96ccc684
2015-10-02 13:56:48 -04:00
Ian Hays 0f8197a86c Update CoreFX to xunit 2.1.0
Commit migrated from https://github.com/dotnet/corefx/commit/87b48c58936d66fcb201b3a8ad0961fa055f23b9
2015-10-01 19:56:49 -07:00
Hemanth Kapila 4f26738d30 CURL Handler redirect fixes
This commit fixes the following issues  in CurlHandler w.r.t following URI redirection

* Ensure that the credentials are nullified at the right place. We should not set username and/or password to null unnecessarily. libcurl differentiates between unset UserNames/Passwords and null user names/passwords

* Ensure that libcurl follows only HTTPS uri if the original request was for a HTTPS URL.

* Ensure that libcurl follows only a HTTPS or a HTTP uri if the original request was for a HTTP URL.

* Ensure redirect results in a proper response code

* For all requests, limiting protocols to http and https


Commit migrated from https://github.com/dotnet/corefx/commit/7c59e04ce8b26887c386fc3045882196a3142b36
2015-10-01 19:34:28 +05:30
David Shulman faecfe5a93 Merge pull request dotnet/corefx#3554 from davidsh/more_http_tests
Add more HTTP tests

Commit migrated from https://github.com/dotnet/corefx/commit/1338765c9d6be95506edcdf2dab00f4c5d9153d2
2015-09-30 20:49:57 -07:00
David Shulman a6002ce802 Add more HTTP tests
* Add more tests ported from the internal ToF tests.
* Cleanup existing tests to be consistent in style and format as it has
drifted due to many different people working on the tests.
* Disposing the HttpClient object will dispose the handler as well so we
don't need multiple 'using' statements unless we are explicitly testing
dispose ordering semantics.


Commit migrated from https://github.com/dotnet/corefx/commit/ad55c1d5685afc4009cb2481fcc7c5e4f4a551f8
2015-09-30 20:11:07 -07:00
bartonjs a52f41057c Update all CoreFx package references to 23328 build.
`build.cmd /p:LockDependencies=true` was the start of this change, but some errors with xunit build numbers led to all xunit upgrades being reset back to what they had in master.

project.json changes:
* System.Net.Security\src Switch off of explicit beta versioning, use the same baseline as everyone else.  The S.S.C.Algorithms explicit upgrade is no longer required.
* System.Net.Requests\tests didn't build.  Looking at the project.lock.json change, it appeared that a System.Net.Http reference was lost, restored it.
* System.Net.Http\tests didn't build. Looking at the project.lock.json change, it appeared that a System.IO.FileSystem reference was lost, restored it.
* System.Net.WebSockets.Client\src didn't build. Looking at the project.lock.json change, it appeared that a System.Collections (4.0.10) reference was lost, restored it.
* System.Diagnostics.TextWriterTraceListener\tests needed the runtime reference to load the correct System.Diagnostics.TraceSource binary.


Commit migrated from https://github.com/dotnet/corefx/commit/cec3a0f2db542bfa9d9c56bf988d966eacc35ad9
2015-09-29 11:40:37 -07:00
David Shulman 9d997536f4 Port additional System.Net.Http tests to CoreFx
Added more http tests to open source from the original internal ToF tests. Some of
the tests should be refactored in the future to avoid Assert'ing multiple
logical things.

Fixed up test namespaces for System.Net.Http and
System.Net.Http.WinHttpHandler.


Commit migrated from https://github.com/dotnet/corefx/commit/e5a017cb6ca01e99b1f1462298bc0cbf60c06ee0
2015-09-21 11:48:34 -07:00
stephentoub 791179fdf2 Add MaxRequestContentBufferSize tests to lock in behavior
Commit migrated from https://github.com/dotnet/corefx/commit/e25c5020fd9e327dfdb7baffb9d772967b28abc9
2015-09-19 20:29:06 -04:00
Alexander Köplinger 3e20a867b2 Update build to use DNX beta7 instead of beta5
The corefx build used an older beta5 version of DNX which hardcoded the path to bash in dnu, breaking the build on FreeBSD.
Updating DNX to the latest "stable" beta7 release fixes this.

After updating I noticed a few test projects didn't build anymore as they were missing some dependencies in project.json, added those.

Fixes dotnet/corefx#3173


Commit migrated from https://github.com/dotnet/corefx/commit/6df77fdbb6cf8e0d35a3074bb325f7810085daa3
2015-09-16 02:12:26 +02:00
stephentoub b1d72f56c2 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/9f628cfa67e6c481b76c03aa8c9c50472df1863d
2015-09-10 08:40:32 -07:00
stephentoub 54c0b5401d Add tests for different request streams
Commit migrated from https://github.com/dotnet/corefx/commit/f9d1b3c47d4ff46afaa44fdb0eede63712e92164
2015-09-09 10:00:25 -07:00
Hemanth Kapila 5e333c2d1b Fix for dotnet/corefx#3124. CurlHandler sets invalid content-type for POST requests
libcurl defaults to a Content-Type:application/x-www-form-urlencoded for
Post operations. This default behavior is inconsistent with dotnet API.
Current PR fixes this issue by overriding the default value.
Also included is the test that was mentioned in dotnet/corefx#3124


Commit migrated from https://github.com/dotnet/corefx/commit/594ee48d91fbe827fb3e3cca05ef1cba8466e152
2015-09-09 11:56:39 +05:30
stephentoub d25820bc15 Avoid blocking CurlHandler write callback
When receiving the body of an HTTP response, libcurl provides the data
received via a callback that's invoked synchronously from the thread
pumping libcurl's processing.  This callback can't return until it's
handed off all of the available data, and thus the current implementation
of CurlHandler blocks that thread until a reader has consumed the data.
This is both expensive and dangerous.  It's expensive because we end up
blocking a thread until some reader comes along, and it's dangerous
because this can easily lead to deadlock.  A libcurl multi handle may be
used by only one thread at a time, which means that if the handle is being
used by a thread while blocked on the write callback, no other thread can
access the multi handle, which means no other callbacks for other
concurrent requests can be invoked.  If multiple operations were queued,
and then the data for them arrived in an order that didn't exactly match
the order of readers consuming the data, deadlock would ensue.

This change makes it so that we no longer block the callback, taking
advantage of a pausing mechanism libcurl provides that allows one to pause
a connection until it's needed.

I rewrote the CurlResponseStream to manage this.  Now when the callback
has data to write, it attempts to transfer it to the stream.  If there's a
reader already waiting for the data (represented by a task stored on the
stream), the callback simply transfers its data to the reader.  If the
callback has too much data than would fit in the reader, the remaining
data is buffered on the stream.  If instead the callback finds that either
there isn't a waiting task or that there's already some remaining data
buffered from a previous callback, it instead pauses the connection, such
that no more callbacks will be invoked until we unpause.  From the reader
side, a reader who tries to read data from the stream can pull data from
the remaining buffer if there is any, or can register a task with the
stream that will be filled with data at some point when callback has data
available.

As part of debugging some issues with this change, I added a verbose
tracing mechanism that's enabled by compiling the library with the
CURLHANDLER_VERBOSE constant (the same that we use for enabling libcurl's
verbose diagnostic output).  I left the tracing in as I found it valuable
in diagnosing issues with the library, but we can remove it later if
desired.

I also added a test that deadlocks before the change and that completes
successfully after.


Commit migrated from https://github.com/dotnet/corefx/commit/308efaba2833e5e146319f74a2281e12ef3e5519
2015-09-07 12:21:45 -04:00
Shruti Garg 1d9af3015d Fixing Review comments Post/Put Testcases
Commit migrated from https://github.com/dotnet/corefx/commit/853100ed6f051b3af9eeee8b55e16a60a4703d1e
2015-09-07 12:40:27 +05:30
Shruti Garg ad0bf80977 Enabling Testcases for POST/PUT methods
Commit migrated from https://github.com/dotnet/corefx/commit/20b14c9e9948310a6f0eb507066411d5e7eab5ce
2015-09-04 15:49:23 +05:30
Hemanth Kapila 1b11b28b8f Introducing tests for HttpClientHandler
This checkin tests the client handler in following scenarios:
* Http and Https calls
* Authentication
* Redirection
* Redirection + Authentication
* custom headers
* cookies


Commit migrated from https://github.com/dotnet/corefx/commit/5040201f90c169d6033532170547f111a28bfb81
2015-09-01 16:42:27 -04:00
David Shulman 54525a2a94 Fix HttpClientHandler timeouts
Since HttpClientHandler doesn't expose all the timeout used by the
underlying WinHttpHandler, we need to disable those timeouts in favor of
the HttpClient.Timeout property.

Addresses issue dotnet/corefx#2857.


Commit migrated from https://github.com/dotnet/corefx/commit/86e89f73a1e7bf5b4fd40878f4fec4741a8651ca
2015-08-26 10:15:34 -07:00
David Shulman 33efd55100 Merge pull request dotnet/corefx#2467 from justinvp/http_objectcollection
Avoid internal enumerator allocations in HttpClient

Commit migrated from https://github.com/dotnet/corefx/commit/7b2ed730d8326866a5649b94332c7edd8886cc61
2015-08-24 13:41:17 -07:00
David Shulman 1d920aad29 Merge pull request dotnet/corefx#2561 from justinvp/httpmethod
Optimize HttpMethod.GetHashCode()

Commit migrated from https://github.com/dotnet/corefx/commit/e296c69314d06af2bc6f8e8fea711a374cb1deab
2015-08-24 10:19:37 -07:00
Eric St. John d7a0ae297b Update corefx packages to latest
Commit migrated from https://github.com/dotnet/corefx/commit/23f0b695bd162e0f665427c95180dc21931e5c70
2015-08-14 15:43:23 -07:00
Eric St. John 24877d3ce7 Move System.Net tests up to latest pre-release version
This change undoes the workaround from https://github.com/dotnet/corefx/commit/dotnet/corefx@5d9f9d4c6ea450366c7b70af6e6006a401284d14#diff-53766f09e26c8b4b422d2946d05c83a6


Commit migrated from https://github.com/dotnet/corefx/commit/ccdf7bb4a2a87de13f8dba69ac7a0df3818c69b1
2015-08-14 10:21:53 -07:00