2
0

test1235 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. globbing
  7. {} list
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data1>
  13. HTTP/1.1 200 OK
  14. Funny-head: yesyes
  15. Content-Length: 15
  16. the number one
  17. </data1>
  18. <data2>
  19. HTTP/1.1 200 OK
  20. Funny-head: yesyes
  21. Content-Length: 16
  22. two is nice too
  23. </data2>
  24. </reply>
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. multiple requests using {}{} in the URL
  32. </name>
  33. <command>
  34. "%HOSTIP:%HTTPPORT/{%TESTNUMBER,%TESTNUMBER}{0001,0002}"
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. GET /%TESTNUMBER0001 HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. GET /%TESTNUMBER0002 HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. GET /%TESTNUMBER0001 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. User-Agent: curl/%VERSION
  51. Accept: */*
  52. GET /%TESTNUMBER0002 HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. User-Agent: curl/%VERSION
  55. Accept: */*
  56. </protocol>
  57. <stdout>
  58. HTTP/1.1 200 OK
  59. Funny-head: yesyes
  60. Content-Length: 15
  61. the number one
  62. HTTP/1.1 200 OK
  63. Funny-head: yesyes
  64. Content-Length: 16
  65. two is nice too
  66. HTTP/1.1 200 OK
  67. Funny-head: yesyes
  68. Content-Length: 15
  69. the number one
  70. HTTP/1.1 200 OK
  71. Funny-head: yesyes
  72. Content-Length: 16
  73. two is nice too
  74. </stdout>
  75. </verify>
  76. </testcase>