0

OS: Windows Server 2019 Version 1809

IIS: 10.0.17763.1

When sending a POST request with no content, we are receiving an 411 error thrown by http.sys. I already read this question, but we cannot change the client code since the request are coming from a WOPI client. I also went through the registy entries for http.sys but I couldn't find the correct one. It somehow must be possible, because there are WOPI Hosts running with IIS. Since WOPI Hosts are nothing completely new, someone else must have stumbled across this issue.

Can I somehow tell http.sys to allow empty content for post requests or is this some kind of config for each WOPI client?

0lli.rocks
  • 1,027
  • 1
  • 18
  • 31
  • The 411 error in your link does not represent your problem, this error indicates that the server refuses to accept the request without a defined Content-Length header, you should check your Content-Length. – samwu Dec 06 '22 at 03:16
  • You should keep in mind that IIS/http.sys does not allow much customization either. So, if like you said you "cannot change the client code", then you stuck on both sides, and might have to develop a "proxy" app in the middle to bridge the gaps. Not easy but doable. – Lex Li Dec 06 '22 at 03:42
  • @LexLi That is indeed our current workaround. We have a proxy that sets the Content-Length to 0 if there is none. It works but we hoped for a better solution – 0lli.rocks Dec 06 '22 at 07:24

0 Answers0