xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | <reply> |
| 11 | <data nocheck="yes"> |
| 12 | HTTP/1.1 200 OK
|
| 13 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 14 | Server: test-server/fake
|
| 15 | Content-Length: 6
|
| 16 | Connection: close
|
| 17 | Content-Type: text/html
|
| 18 |
|
| 19 | 12345 |
| 20 | </data> |
| 21 | </reply> |
| 22 | |
| 23 | # |
| 24 | # Client-side |
| 25 | <client> |
| 26 | <server> |
| 27 | http |
| 28 | </server> |
| 29 | <name> |
| 30 | HTTP GET -o fname -i without Content-Disposition, -D file |
| 31 | </name> |
| 32 | <command option="no-output,no-include"> |
| 33 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -i -o log/outfile%TESTNUMBER -D log/heads%TESTNUMBER |
| 34 | </command> |
| 35 | <postcheck> |
| 36 | perl %SRCDIR/libtest/notexists.pl log/%TESTNUMBER |
| 37 | </postcheck> |
| 38 | </client> |
| 39 | |
| 40 | # |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | <protocol> |
| 44 | GET /%TESTNUMBER HTTP/1.1
|
| 45 | Host: %HOSTIP:%HTTPPORT
|
| 46 | User-Agent: curl/%VERSION
|
| 47 | Accept: */*
|
| 48 |
|
| 49 | </protocol> |
| 50 | |
| 51 | <file1 name="log/outfile%TESTNUMBER"> |
| 52 | HTTP/1.1 200 OK
|
| 53 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 54 | Server: test-server/fake
|
| 55 | Content-Length: 6
|
| 56 | Connection: close
|
| 57 | Content-Type: text/html
|
| 58 |
|
| 59 | 12345 |
| 60 | </file1> |
| 61 | |
| 62 | <file2 name="log/heads%TESTNUMBER"> |
| 63 | HTTP/1.1 200 OK
|
| 64 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 65 | Server: test-server/fake
|
| 66 | Content-Length: 6
|
| 67 | Connection: close
|
| 68 | Content-Type: text/html
|
| 69 |
|
| 70 | </file2> |
| 71 | |
| 72 | <file3 name="log/stdout%TESTNUMBER"> |
| 73 | </file3> |
| 74 | |
| 75 | </verify> |
| 76 | </testcase> |