了解卷曲请求

时间:2015-06-16 10:37:17

标签: curl

我得到了跟随线以及回复。响应后如何强制关闭连接?

  

连接#0以托管localhost保持原样

curl命令:

curl -v --user uname:password -H "Accept: application/xml" http://localhost:8090/services/VariableService/variableService/

1 个答案:

答案 0 :(得分:1)

默认情况下,curl保持连接60秒。使用curl -v --user uname:password -H“Accept:application / xml”http://localhost:8090/services/VariableService/variableService/ - no-keepalive 来否定默认行为。