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 |
|
| 20 | 12345 |
| 21 | </data> |
| 22 | </reply> |
| 23 | |
| 24 | # |
| 25 | # Client-side |
| 26 | <client> |
| 27 | # this relies on the debug feature to allow us to set directory to store the |
| 28 | # -O and -J output in, using the CURL_TESTDIR variable |
| 29 | <features> |
| 30 | debug |
| 31 | </features> |
| 32 | <server> |
| 33 | http |
| 34 | </server> |
| 35 | <name> |
| 36 | HTTP GET with -O -J without Content-Disposition, -D file |
| 37 | </name> |
| 38 | <setenv> |
| 39 | CURL_TESTDIR=%PWD/log |
| 40 | </setenv> |
| 41 | <command option="no-output,no-include"> |
| 42 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O -D log/heads%TESTNUMBER |
| 43 | </command> |
| 44 | </client> |
| 45 | |
| 46 | # |
| 47 | # Verify data after the test has been "shot" |
| 48 | <verify> |
| 49 | <protocol> |
| 50 | GET /%TESTNUMBER HTTP/1.1
|
| 51 | Host: %HOSTIP:%HTTPPORT
|
| 52 | User-Agent: curl/%VERSION
|
| 53 | Accept: */*
|
| 54 |
|
| 55 | </protocol> |
| 56 | |
| 57 | <file1 name="log/%TESTNUMBER"> |
| 58 | 12345 |
| 59 | </file1> |
| 60 | |
| 61 | <file2 name="log/heads%TESTNUMBER"> |
| 62 | HTTP/1.1 200 OK
|
| 63 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 64 | Server: test-server/fake
|
| 65 | Content-Length: 6
|
| 66 | Connection: close
|
| 67 | Content-Type: text/html
|
| 68 |
|
| 69 | </file2> |
| 70 | |
| 71 | <file3 name="log/stdout%TESTNUMBER"> |
| 72 | </file3> |
| 73 | |
| 74 | </verify> |
| 75 | </testcase> |