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