test29 640 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. timeout
  7. FAILURE
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK swsclose
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Connection: close
  16. _data_result_data_
  17. </data>
  18. <postcmd>
  19. wait 10
  20. </postcmd>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <name>
  28. HTTP with 2 secs timeout
  29. </name>
  30. <command>
  31. http://%HOSTIP:%HTTPPORT/want/29 -m 2
  32. </command>
  33. </client>
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <strip>
  37. ^User-Agent:.*
  38. </strip>
  39. <protocol>
  40. GET /want/29 HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. Accept: */*
  43. </protocol>
  44. <errorcode>
  45. 28
  46. </errorcode>
  47. </verify>
  48. </testcase>