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