test18 1.2 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. <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. --_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER
  61. HTTP/1.1 200 OK
  62. Funny-head: yesyes
  63. Content-Length: 4
  64. moo
  65. --_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0002
  66. HTTP/1.1 200 OK
  67. Funny-head: yesyes
  68. Content-Length: 4
  69. foo
  70. --_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0003
  71. HTTP/1.1 200 OK
  72. Funny-head: yesyes
  73. Content-Length: 4
  74. hoo
  75. </stdout>
  76. </verify>
  77. </testcase>