xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | netrc |
| 6 | </keywords> |
| 7 | </info> |
| 8 | # |
| 9 | # Server-side |
| 10 | <reply> |
| 11 | </reply> |
| 12 | |
| 13 | # |
| 14 | # Client-side |
| 15 | <client> |
| 16 | <server> |
| 17 | none |
| 18 | </server> |
| 19 | <features> |
| 20 | http |
| 21 | </features> |
| 22 | <name> |
| 23 | netrc with quoted password but missing end quote |
| 24 | </name> |
| 25 | <command> |
| 26 | --netrc --netrc-file log/netrc%TESTNUMBER http://user1@http.example/ |
| 27 | </command> |
| 28 | <file name="log/netrc%TESTNUMBER" > |
| 29 | machine %HOSTIP login user1 password "with spaces and \"\n\r\t\a |
| 30 | </file> |
| 31 | </client> |
| 32 | |
| 33 | # |
| 34 | # Verify data after the test has been "shot" |
| 35 | <verify> |
| 36 | <errorcode> |
| 37 | 26 |
| 38 | </errorcode> |
| 39 | </verify> |
| 40 | </testcase> |