test1235 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/{1235,1235}{0001,0002}"
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. GET /12350001 HTTP/1.1
  44. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. GET /12350002 HTTP/1.1
  48. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. GET /12350001 HTTP/1.1
  52. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  53. Host: %HOSTIP:%HTTPPORT
  54. Accept: */*
  55. GET /12350002 HTTP/1.1
  56. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  57. Host: %HOSTIP:%HTTPPORT
  58. Accept: */*
  59. </protocol>
  60. <stdout>
  61. --_curl_--%HOSTIP:%HTTPPORT/12350001
  62. HTTP/1.1 200 OK
  63. Funny-head: yesyes
  64. Content-Length: 15
  65. the number one
  66. --_curl_--%HOSTIP:%HTTPPORT/12350002
  67. HTTP/1.1 200 OK
  68. Funny-head: yesyes
  69. Content-Length: 16
  70. two is nice too
  71. --_curl_--%HOSTIP:%HTTPPORT/12350001
  72. HTTP/1.1 200 OK
  73. Funny-head: yesyes
  74. Content-Length: 15
  75. the number one
  76. --_curl_--%HOSTIP:%HTTPPORT/12350002
  77. HTTP/1.1 200 OK
  78. Funny-head: yesyes
  79. Content-Length: 16
  80. two is nice too
  81. </stdout>
  82. </verify>
  83. </testcase>