test1436 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. unix sockets
  7. </keywords>
  8. </info>
  9. <reply>
  10. <data1>
  11. HTTP/1.1 200 OK
  12. Date: Mon, 17 Nov 2014 13:42:47 GMT
  13. Content-Length: 6
  14. First
  15. </data1>
  16. <data2>
  17. HTTP/1.1 200 OK
  18. Date: Mon, 17 Nov 2014 13:42:48 GMT
  19. Content-Length: 7
  20. Second
  21. </data2>
  22. <data3>
  23. HTTP/1.1 200 OK
  24. Date: Mon, 17 Nov 2014 13:42:49 GMT
  25. Content-Length: 6
  26. Third
  27. </data3>
  28. </reply>
  29. <client>
  30. <features>
  31. unix-sockets
  32. </features>
  33. <server>
  34. http-unix
  35. </server>
  36. <name>
  37. HTTP requests with multiple connections over Unix socket
  38. </name>
  39. <command>
  40. --unix-socket %HTTPUNIXPATH http://one.example.com/14360001 http://two.example.com/14360002 http://one.example.com/14360003
  41. </command>
  42. </client>
  43. <verify>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. GET /14360001 HTTP/1.1
  49. Host: one.example.com
  50. Accept: */*
  51. GET /14360002 HTTP/1.1
  52. Host: two.example.com
  53. Accept: */*
  54. GET /14360003 HTTP/1.1
  55. Host: one.example.com
  56. Accept: */*
  57. </protocol>
  58. <stdout>
  59. HTTP/1.1 200 OK
  60. Date: Mon, 17 Nov 2014 13:42:47 GMT
  61. Content-Length: 6
  62. First
  63. HTTP/1.1 200 OK
  64. Date: Mon, 17 Nov 2014 13:42:48 GMT
  65. Content-Length: 7
  66. Second
  67. HTTP/1.1 200 OK
  68. Date: Mon, 17 Nov 2014 13:42:49 GMT
  69. Content-Length: 6
  70. Third
  71. </stdout>
  72. </verify>
  73. </testcase>