test18 1.4 KB

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