test18 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. <data nocheck="yes">
  13. HTTP/1.1 200 OK
  14. Funny-head: yesyes
  15. Content-Length: 4
  16. moo
  17. </data>
  18. <data2>
  19. HTTP/1.1 200 OK
  20. Funny-head: yesyes
  21. Content-Length: 4
  22. foo
  23. </data2>
  24. <data3>
  25. HTTP/1.1 200 OK
  26. Funny-head: yesyes
  27. Content-Length: 4
  28. hoo
  29. </data3>
  30. </reply>
  31. # Client-side
  32. <client>
  33. <server>
  34. http
  35. </server>
  36. <name>
  37. multiple requests using {} in URL
  38. </name>
  39. <command>
  40. "%HOSTIP:%HTTPPORT/{%TESTNUMBER,%TESTNUMBER0002,%TESTNUMBER0003}"
  41. </command>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. GET /%TESTNUMBER0002 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. GET /%TESTNUMBER0003 HTTP/1.1
  55. Host: %HOSTIP:%HTTPPORT
  56. User-Agent: curl/%VERSION
  57. Accept: */*
  58. </protocol>
  59. <stdout>
  60. HTTP/1.1 200 OK
  61. Funny-head: yesyes
  62. Content-Length: 4
  63. moo
  64. HTTP/1.1 200 OK
  65. Funny-head: yesyes
  66. Content-Length: 4
  67. foo
  68. HTTP/1.1 200 OK
  69. Funny-head: yesyes
  70. Content-Length: 4
  71. hoo
  72. </stdout>
  73. </verify>
  74. </testcase>