test1510 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. <data1>
  10. HTTP/1.1 200 OK
  11. Date: Thu, 09 Nov 2010 14:49:00 GMT
  12. Server: test-server/fake
  13. Content-Length: 47
  14. file contents should appear once for each file
  15. </data1>
  16. <data2>
  17. HTTP/1.1 200 OK
  18. Date: Thu, 09 Nov 2010 14:49:00 GMT
  19. Server: test-server/fake
  20. Content-Length: 47
  21. file contents should appear once for each file
  22. </data2>
  23. <data3>
  24. HTTP/1.1 200 OK
  25. Date: Thu, 09 Nov 2010 14:49:00 GMT
  26. Server: test-server/fake
  27. Content-Length: 47
  28. file contents should appear once for each file
  29. </data3>
  30. <data4>
  31. HTTP/1.1 200 OK
  32. Date: Thu, 09 Nov 2010 14:49:00 GMT
  33. Server: test-server/fake
  34. Content-Length: 47
  35. file contents should appear once for each file
  36. </data4>
  37. </reply>
  38. # Client-side
  39. <client>
  40. <server>
  41. http
  42. </server>
  43. <tool>
  44. lib1510
  45. </tool>
  46. <name>
  47. HTTP GET connection cache limit (CURLOPT_MAXCONNECTS)
  48. </name>
  49. <command>
  50. http://%HOSTIP:%HTTPPORT/path/1510 %HOSTIP %HTTPPORT
  51. </command>
  52. </client>
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. <protocol>
  56. GET /path/15100001 HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. Accept: */*
  59. GET /path/15100002 HTTP/1.1
  60. Host: %HOSTIP:%HTTPPORT
  61. Accept: */*
  62. GET /path/15100003 HTTP/1.1
  63. Host: %HOSTIP:%HTTPPORT
  64. Accept: */*
  65. GET /path/15100004 HTTP/1.1
  66. Host: %HOSTIP:%HTTPPORT
  67. Accept: */*
  68. </protocol>
  69. <strip>
  70. ^Host:.*
  71. </strip>
  72. <file name="log/stderr1510" mode="text">
  73. * Connection #0 to host server1.example.com left intact
  74. * Connection #1 to host server2.example.com left intact
  75. * Connection #2 to host server3.example.com left intact
  76. * Closing connection 0
  77. * Connection #3 to host server4.example.com left intact
  78. </file>
  79. <stripfile>
  80. $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
  81. </stripfile>
  82. </verify>
  83. </testcase>