I'm developing an app that for legacy code reasons I can't upgrade for the new HttpClient
so I'm using HttpWebRequests
.
In .NET 4 we could deactivate the Expect header (on posts requests) using ServicePoint.Expect100Continue
property, but on WinRT it's not available.
How can this be accomplished on WinRT?
EDIT: System.Net.ServicePointManager.Expect100Continue
is not available either.
var c = new HttpClient();
c.DefaultRequestHeaders.ExpectContinue = false;