lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | # Server-side |
| 9 | <reply> |
| 10 | <data> |
| 11 | HTTP/1.0 200 Mooo swsclose |
| 12 | Server: test-server/fake |
| 13 | Connection: close |
| 14 | |
| 15 | *flopp* |
| 16 | </data> |
| 17 | </reply> |
| 18 | |
| 19 | # Client-side |
| 20 | <client> |
| 21 | <server> |
| 22 | http |
| 23 | </server> |
| 24 | <name> |
| 25 | specify more -o than URLs |
| 26 | </name> |
| 27 | <command> |
| 28 | http://%HOSTIP:%HTTPPORT/want/26 -o - -o - |
| 29 | </command> |
| 30 | </client> |
| 31 | |
| 32 | # Verify data after the test has been "shot" |
| 33 | <verify> |
| 34 | <strip> |
| 35 | ^User-Agent: curl.* |
| 36 | </strip> |
| 37 | <protocol> |
| 38 | GET /want/26 HTTP/1.1
|
| 39 | User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
|
| 40 | Host: %HOSTIP:%HTTPPORT
|
| 41 | Accept: */*
|
| 42 |
|
| 43 | </protocol> |
| 44 | </verify> |
| 45 | </testcase> |