C# Owin 自托管 - 预期 header 100-继续
C# Owin Self Host - Expected header 100-continue
我们在使用带有自托管的 OWIN 时遇到问题。我们有来自控制台应用程序的网络服务器 运行。 在 IIS 上它不是 运行。
HTTP 100-继续规范:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3
OWIN 100-继续规范:
http://owin.org/html/owin.html
What/Where/How 应该在请求中处理 expect: 100-continue header?我们正在使用简单的引导程序:
string baseUrl = "http://*:8050/";
var webApp = WebApp.Start<StartupConfiguration> (new StartOptions (baseUrl) { });
string input = Console.ReadLine ();
if (webApp != null)
{
webApp.Dispose ();
}
根据 OWIN 规范,100(继续)响应由服务器处理。在你的情况下 OWIN.SelfHost.
100(继续)响应根据 RFC2616 https://www.ietf.org/rfc/rfc2616.txt
处理
请注意,如果源服务器已经收到相应请求的部分或全部请求正文,则它可以忽略 100(继续)响应。
我们在使用带有自托管的 OWIN 时遇到问题。我们有来自控制台应用程序的网络服务器 运行。 在 IIS 上它不是 运行。
HTTP 100-继续规范: http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3
OWIN 100-继续规范: http://owin.org/html/owin.html
What/Where/How 应该在请求中处理 expect: 100-continue header?我们正在使用简单的引导程序:
string baseUrl = "http://*:8050/";
var webApp = WebApp.Start<StartupConfiguration> (new StartOptions (baseUrl) { });
string input = Console.ReadLine ();
if (webApp != null)
{
webApp.Dispose ();
}
根据 OWIN 规范,100(继续)响应由服务器处理。在你的情况下 OWIN.SelfHost.
100(继续)响应根据 RFC2616 https://www.ietf.org/rfc/rfc2616.txt
处理请注意,如果源服务器已经收到相应请求的部分或全部请求正文,则它可以忽略 100(继续)响应。