| 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 swsclose |
| 14 | 12345 |
| 15 | fooo |
| 16 | 54 3 2 1 |
| 17 | Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange |
| 18 | |
| 19 | </data> |
| 20 | </reply> |
| 21 | |
| 22 | # |
| 23 | # Client-side |
| 24 | <client> |
| 25 | # this relies on the debug feature to allow us to set directory to store the |
| 26 | # -J output in |
| 27 | <features> |
| 28 | debug |
| 29 | </features> |
| 30 | <server> |
| 31 | http |
| 32 | </server> |
| 33 | <name> |
| 34 | HTTP GET with -Ji and Content-Disposition with existing file |
| 35 | </name> |
| 36 | <setenv> |
| 37 | CURL_TESTDIR=%PWD/log |
| 38 | </setenv> |
| 39 | <command option="no-output,no-include"> |
| 40 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -Ji -O |
| 41 | </command> |
| 42 | <file name="log/name%TESTNUMBER"> |
| 43 | initial content |
| 44 | </file> |
| 45 | </client> |
| 46 | |
| 47 | # |
| 48 | # Verify data after the test has been "shot" |
| 49 | <verify> |
| 50 | # Warning: --include and --remote-header-name cannot be combined. |
| 51 | <errorcode> |
| 52 | 2 |
| 53 | </errorcode> |
| 54 | <file name="log/name%TESTNUMBER"> |
| 55 | initial content |
| 56 | </file> |
| 57 | |
| 58 | </verify> |
| 59 | </testcase> |