http.sys

Setting UrlSegmentMaxLength from commadline

大城市里の小女人 提交于 2019-12-24 10:45:27
问题 Is there a way to set the UrlSegmentMaxLength value for Http.sys using appcmd/netsh or any other commandline utility? 回答1: I change this for my deployment in powershell Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\HTTP\Parameters -Name UrlSegmentMaxLength -Value 500 Restart-Service W3SVC -Force 回答2: I realize this is an old question, but in case someone stumbles upon this, here's PowerShell one-liner that either creates the key and sets the value or updates existing value.

%09 in a URL causes IIS (HTTP.SYS?) to return HTTP 400 immediately

☆樱花仙子☆ 提交于 2019-12-22 11:12:57
问题 I've discovered that IIS7, 7.5 and 8 (and probably previous versions too) will fail-fast when encountering any URL that contains %09 that is not part of a querystring. StackOverflow itself exhibits the same behavior, observe: http://www.stackoverflow.com/questions/%09 This is annoying for my application because I have built a web-service which should return text/xml for every request, even invalid ones, containing a specific XML document format containing error codes. I've found that some

Asp.Net core bug? Blazor/Http.Sys with Windows Authentication shows “The connection was reset”?

半世苍凉 提交于 2019-12-22 00:26:43
问题 Update: Just tried the official example https://github.com/aspnet/AspNetCore.Docs/tree/master/aspnetcore/fundamentals/servers/httpsys/samples/3.x/SampleApp and it doesn't work. Brower message: This site can’t provide a secure connection localhost sent an invalid response. Output: info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0] User profile is available. Using 'C:\Users\xxx\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys

HTTPERR log: Request_Cancelled (while troubleshooting WCF service)

天大地大妈咪最大 提交于 2019-12-21 22:27:54
问题 I am trying to troubleshoot a "connection was forcibly closed by the remote host" error on a WCF client accessing a WCF self-hosted service. I was looking at the httperr logs in System32\LogFiles\HTTPERR on the service-side machine and each time I see that error on my client, I see entries in the log with my service's endpoint URI. The reason is "Request_Cancelled". I can't find anything anywhere about what that reason signifies. I can guess, but I'd like to know for sure, as it must have

WCF without HTTP.SYS

穿精又带淫゛_ 提交于 2019-12-20 11:34:10
问题 When using a HTTP binding in WCF, I need to grant myself special permissions to be able to bind to that port/path. I understand this is because WCF accepts HTTP traffic through the http.sys driver. In the olden days, we could new up a socket and bind to any old port that wasn't in use, without being an admin. NetTcpBinding is still able to do this. If I don't care for http.sys, is there a way to tell WCF not to use it, and instead to just open up a regular old socket while still using HTTP

How to Forcefully Redirect HTTP 400 Error in Windows Server HTTP.SYS or IIS levels

我们两清 提交于 2019-12-11 13:09:50
问题 I want to know How to Forcefully Redirect the Error Page for HTTP 400 Bad Request Error in Windows Server HTTP.SYS or IIS levels ,As per my knowledge IIS supporting greater than 400 only,, Is there any Core level way is there for HTTP 400. Bad Request Error Redirection?. or getting some call back from http.sys kernel if 400 error occurs? Update Notes: -- As per TechNet Art, cannot customize the following HTTP errors: 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505 in IIS

http.sys implementation

点点圈 提交于 2019-12-08 02:34:03
问题 We all know that there's a big sweet piece o' binary named http.sys kernel-mode driver in our Windows that does HTTP handling for us. That is basically all we know about it. But today I thought: hey, all our networking stuff like TCP/IP and whatnot is here, in userland -- ws2_32.dll's providers (in mswsock.dll) and all its friends. Since there are userland components, there is no way http.sys uses them. The question is: how do they do it? Any informative links will be greatly appreciated. 回答1

What is phrase “URL reservation in HTTP.SYS” means?

不打扰是莪最后的温柔 提交于 2019-12-06 08:31:33
问题 Can't understand the meaning of this phrase. People on forums suggests each other to reserve url in HTTP.sys, but what does it mean? What is it for? How does it works? All it comes from HttpWebRequest uac problems. 回答1: Several Win32 APIs and .NET framework components (such as WCF) utilize the HTTP Server API when they want to send or receive HTTP requests targeted at the local machine. The HTTP Server API basically provides such functionality in a manner managed by the OS without the need

%09 in a URL causes IIS (HTTP.SYS?) to return HTTP 400 immediately

陌路散爱 提交于 2019-12-06 03:12:10
I've discovered that IIS7, 7.5 and 8 (and probably previous versions too) will fail-fast when encountering any URL that contains %09 that is not part of a querystring. StackOverflow itself exhibits the same behavior, observe: http://www.stackoverflow.com/questions/%09 This is annoying for my application because I have built a web-service which should return text/xml for every request, even invalid ones, containing a specific XML document format containing error codes. I've found that some webservice clients pass the %09 (often caused by a user copying and pasting) to my service, but my server

HTTPERR log: Request_Cancelled (while troubleshooting WCF service)

最后都变了- 提交于 2019-12-04 17:00:52
I am trying to troubleshoot a "connection was forcibly closed by the remote host" error on a WCF client accessing a WCF self-hosted service. I was looking at the httperr logs in System32\LogFiles\HTTPERR on the service-side machine and each time I see that error on my client, I see entries in the log with my service's endpoint URI. The reason is "Request_Cancelled". I can't find anything anywhere about what that reason signifies. I can guess, but I'd like to know for sure, as it must have some relation to the errors I am seeing in my client. What is "Request_Cancelled" in the HTTPERR log? And