2
0

test18 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. {} list
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Funny-head: yesyes
  14. Content-Length: 4
  15. moo
  16. </data>
  17. <data2>
  18. HTTP/1.1 200 OK
  19. Funny-head: yesyes
  20. Content-Length: 4
  21. foo
  22. </data2>
  23. <data3>
  24. HTTP/1.1 200 OK
  25. Funny-head: yesyes
  26. Content-Length: 4
  27. hoo
  28. </data3>
  29. </reply>
  30. # Client-side
  31. <client>
  32. <server>
  33. http
  34. </server>
  35. <name>
  36. multiple requests using {} in URL
  37. </name>
  38. <command>
  39. "%HOSTIP:%HTTPPORT/{18,180002,180003}"
  40. </command>
  41. </client>
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. GET /18 HTTP/1.1
  49. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  50. Host: %HOSTIP:%HTTPPORT
  51. Accept: */*
  52. GET /180002 HTTP/1.1
  53. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  54. Host: %HOSTIP:%HTTPPORT
  55. Accept: */*
  56. GET /180003 HTTP/1.1
  57. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. </protocol>
  61. <stdout>
  62. --_curl_--%HOSTIP:%HTTPPORT/18
  63. HTTP/1.1 200 OK
  64. Funny-head: yesyes
  65. Content-Length: 4
  66. moo
  67. --_curl_--%HOSTIP:%HTTPPORT/180002
  68. HTTP/1.1 200 OK
  69. Funny-head: yesyes
  70. Content-Length: 4
  71. foo
  72. --_curl_--%HOSTIP:%HTTPPORT/180003
  73. HTTP/1.1 200 OK
  74. Funny-head: yesyes
  75. Content-Length: 4
  76. hoo
  77. </stdout>
  78. </verify>
  79. </testcase>