test18 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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/{18,180002,180003}"
  41. </command>
  42. </client>
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <strip>
  46. ^User-Agent:.*
  47. </strip>
  48. <protocol>
  49. GET /18 HTTP/1.1
  50. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  51. Host: %HOSTIP:%HTTPPORT
  52. Accept: */*
  53. GET /180002 HTTP/1.1
  54. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  55. Host: %HOSTIP:%HTTPPORT
  56. Accept: */*
  57. GET /180003 HTTP/1.1
  58. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  59. Host: %HOSTIP:%HTTPPORT
  60. Accept: */*
  61. </protocol>
  62. <stdout>
  63. --_curl_--%HOSTIP:%HTTPPORT/18
  64. HTTP/1.1 200 OK
  65. Funny-head: yesyes
  66. Content-Length: 4
  67. moo
  68. --_curl_--%HOSTIP:%HTTPPORT/180002
  69. HTTP/1.1 200 OK
  70. Funny-head: yesyes
  71. Content-Length: 4
  72. foo
  73. --_curl_--%HOSTIP:%HTTPPORT/180003
  74. HTTP/1.1 200 OK
  75. Funny-head: yesyes
  76. Content-Length: 4
  77. hoo
  78. </stdout>
  79. </verify>
  80. </testcase>