deps/curl/tests/data/test556
raw| 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | <reply> |
| 10 | <data> |
| 11 | HTTP/1.1 200 OK swsclose |
| 12 | Server: test-server/fake |
| 13 | Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT |
| 14 | Content-Length: 6 |
| 15 | Connection: close |
| 16 | |
| 17 | -foo- |
| 18 | </data> |
| 19 | </reply> |
| 20 | |
| 21 | # |
| 22 | # Client-side |
| 23 | <client> |
| 24 | <server> |
| 25 | http |
| 26 | </server> |
| 27 | <tool> |
| 28 | lib556 |
| 29 | </tool> |
| 30 | <name> |
| 31 | send and recv HTTP |
| 32 | </name> |
| 33 | <command> |
| 34 | http://%HOSTIP:%HTTPPORT |
| 35 | </command> |
| 36 | </client> |
| 37 | |
| 38 | # |
| 39 | # Verify data after the test has been "shot" |
| 40 | <verify> |
| 41 | <strip> |
| 42 | ^User-Agent:.* |
| 43 | </strip> |
| 44 | <protocol> |
| 45 | GET /556 HTTP/1.2 |
| 46 | Host: ninja |
| 47 | |
| 48 | </protocol> |
| 49 | </verify> |
| 50 | </testcase> |