test1436 1.3 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/%TESTNUMBER0001 http://two.example.com/%TESTNUMBER0002 http://one.example.com/%TESTNUMBER0003
  41. </command>
  42. </client>
  43. <verify>
  44. <protocol>
  45. GET /%TESTNUMBER0001 HTTP/1.1
  46. Host: one.example.com
  47. User-Agent: curl/%VERSION
  48. Accept: */*
  49. GET /%TESTNUMBER0002 HTTP/1.1
  50. Host: two.example.com
  51. User-Agent: curl/%VERSION
  52. Accept: */*
  53. GET /%TESTNUMBER0003 HTTP/1.1
  54. Host: one.example.com
  55. User-Agent: curl/%VERSION
  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>