test1542 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. connection reuse
  6. persistent connection
  7. CURLOPT_MAXLIFETIME_CONN
  8. verbose logs
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data nocheck="yes">
  14. HTTP/1.1 200 OK
  15. Content-Length: 0
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <tool>
  24. lib%TESTNUMBER
  25. </tool>
  26. <name>
  27. connection reuse with CURLOPT_MAXLIFETIME_CONN
  28. </name>
  29. <command>
  30. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  31. </command>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <protocol>
  36. GET /%TESTNUMBER HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. Accept: */*
  39. GET /%TESTNUMBER HTTP/1.1
  40. Host: %HOSTIP:%HTTPPORT
  41. Accept: */*
  42. GET /%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Accept: */*
  45. GET /%TESTNUMBER HTTP/1.1
  46. Host: %HOSTIP:%HTTPPORT
  47. Accept: */*
  48. </protocol>
  49. <file name="%LOGDIR/stderr%TESTNUMBER" mode="text">
  50. == Info: Connection #0 to host %HOSTIP left intact
  51. == Info: Connection #0 to host %HOSTIP left intact
  52. == Info: Connection #0 to host %HOSTIP left intact
  53. == Info: Closing connection
  54. == Info: Connection #1 to host %HOSTIP left intact
  55. </file>
  56. <stripfile>
  57. $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
  58. </stripfile>
  59. </verify>
  60. </testcase>