Is there any rule for http server implementation to read or skip the request body before sending a response?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Once you have received the full HTTP request you are free to do with it whatever you want to do with it. If you don't care about the body you can simply read it and discard it. You should empty the read buffer obviously.