【发布时间】:2020-03-22 20:25:50
【问题描述】:
是否有可能强制 tomcat 忽略“Expect”标头或仅使用 HTTP 1.0?
我正在发送 curl 请求 curl POST -vv 'http://127.0.0.1:8080/test' -d "@requests/test.xml" -H "SOAPAction: abc/test" -H "Content-Type: text/xml; charset=UTF-8" 并且 curl 默认添加“Expect”标头,这会导致服务器等待另一个永远不会到来的请求。
技术栈:Springboot 2.1.3.RELEASE、Tomcat 9.0.16
我无法修改客户端及其请求的空标头“期望:”。
【问题讨论】:
标签: java spring-boot tomcat curl http-headers