HTTP connection re-use persistent connection CURLOPT_MAXLIFETIME_CONN # Server-side HTTP/1.1 200 OK Content-Length: 0 # Client-side http lib%TESTNUMBER connection reuse with CURLOPT_MAXLIFETIME_CONN http://%HOSTIP:%HTTPPORT/%TESTNUMBER # Verify data after the test has been "shot" GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /%TESTNUMBER HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* == Info: Connection #0 to host %HOSTIP left intact == Info: Connection #0 to host %HOSTIP left intact == Info: Connection #0 to host %HOSTIP left intact == Info: Closing connection 0 == Info: Connection #1 to host %HOSTIP left intact $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))