| <?xml version="1.0" encoding="US-ASCII"?> |
| <testcase> |
| <info> |
| <keywords> |
| netrc |
| --resolve |
| </keywords> |
| </info> |
| |
| <reply> |
| <data> |
| HTTP/1.1 200 OK |
| Content-Length: 6 |
| |
| 12345 |
| </data> |
| </reply> |
| |
| # Client-side |
| <client> |
| <server> |
| http |
| </server> |
| <name> |
| netrc parsing without user match but user in URL |
| </name> |
| <command> |
| --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER http://alice@example.com:%HTTPPORT/%TESTNUMBER --resolve example.com:%HTTPPORT:%HOSTIP |
| </command> |
| <file name="%LOGDIR/netrc%TESTNUMBER" > |
| machine example.com login bob password sekret |
| </file> |
| </client> |
| |
| # Verify data after the test has been "shot" |
| <verify> |
| <protocol crlf="headers"> |
| GET /%TESTNUMBER HTTP/1.1 |
| Host: example.com:%HTTPPORT |
| Authorization: Basic %b64[alice:]b64% |
| User-Agent: curl/%VERSION |
| Accept: */* |
| |
| </protocol> |
| </verify> |
| </testcase> |