test1066 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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/%TESTNUMBER http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER0001 --dump-header -
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. GET /want/%TESTNUMBER HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. GET /want/%TESTNUMBER0001 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. </protocol>
  49. <stdout>
  50. HTTP/1.1 200 OK
  51. HTTP/1.1 200 OK
  52. Server: thebest/1.0
  53. Server: thebest/1.0
  54. Content-Type: text/plain
  55. Content-Type: text/plain
  56. Content-Length: 6
  57. Content-Length: 6
  58. first
  59. HTTP/1.1 200 OK
  60. HTTP/1.1 200 OK
  61. Server: thebest/1.0
  62. Server: thebest/1.0
  63. Content-Type: text/plain
  64. Content-Type: text/plain
  65. Content-Length: 7
  66. Content-Length: 7
  67. second
  68. </stdout>
  69. </verify>
  70. </testcase>