2
0

test1066 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 200 OK
  12. Server: thebest/1.0
  13. Content-Type: text/plain
  14. Content-Length: 6
  15. first
  16. </data>
  17. <data1 nocheck="yes">
  18. HTTP/1.1 200 OK
  19. Server: thebest/1.0
  20. Content-Type: text/plain
  21. Content-Length: 7
  22. second
  23. </data1>
  24. </reply>
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP --dump-header - with two URLs
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/want/1066 http://%HOSTIP:%HTTPPORT/want/10660001 --dump-header -
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. GET /want/1066 HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. GET /want/10660001 HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. Accept: */*
  49. </protocol>
  50. <stdout>
  51. HTTP/1.1 200 OK
  52. HTTP/1.1 200 OK
  53. Server: thebest/1.0
  54. Server: thebest/1.0
  55. Content-Type: text/plain
  56. Content-Type: text/plain
  57. Content-Length: 6
  58. Content-Length: 6
  59. first
  60. HTTP/1.1 200 OK
  61. HTTP/1.1 200 OK
  62. Server: thebest/1.0
  63. Server: thebest/1.0
  64. Content-Type: text/plain
  65. Content-Type: text/plain
  66. Content-Length: 7
  67. Content-Length: 7
  68. second
  69. </stdout>
  70. </verify>
  71. </testcase>