We encountered problem using OWIN with selfhosting. We have webserver running from console application. It is NOT running on IIS.
HTTP 100-continue specification: http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3
OWIN 100-continue specification: http://owin.org/html/owin.html
What/Where/How should handle expect: 100-continue header in Request? We are using simple bootstraper:
string baseUrl = "http://*:8050/";
var webApp = WebApp.Start<StartupConfiguration> (new StartOptions (baseUrl) { });
string input = Console.ReadLine ();
if (webApp != null)
{
webApp.Dispose ();
}
According to OWIN specification 100 (continue) responses are handled by server. In your case by OWIN.SelfHost.
100 (continue) responses are handled according to RFC2616 https://www.ietf.org/rfc/rfc2616.txt
Notice that an origin server MAY omit a 100 (Continue) response if it has already received some or all of the request body for the corresponding request.