我得到了跟随线以及回复。响应后如何强制关闭连接?
连接#0以托管localhost保持原样
curl命令:
curl -v --user uname:password -H "Accept: application/xml" http://localhost:8090/services/VariableService/variableService/
答案 0 :(得分:1)
默认情况下,curl保持连接60秒。使用curl -v --user uname:password -H“Accept:application / xml”http://localhost:8090/services/VariableService/variableService/ - no-keepalive 来否定默认行为。