mirror of
https://github.com/curl/curl.git
synced 2026-07-26 01:27:15 +03:00
netrc: refactor into smaller sub functions
Fixes #20950 - test 685 is extended for this Closes #20932
This commit is contained in:
parent
a46816b4cb
commit
a327a5bded
4 changed files with 334 additions and 221 deletions
|
|
@ -26,13 +26,15 @@ Connection: close
|
|||
http
|
||||
</server>
|
||||
<name>
|
||||
netrc with no login - provided user
|
||||
netrc with no login - but provided user in URL
|
||||
</name>
|
||||
<command>
|
||||
--netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://user@%HOSTIP:%HTTPPORT/
|
||||
</command>
|
||||
<file name="%LOGDIR/netrc%TESTNUMBER" >
|
||||
machine %HOSTIP password firstthis login unknown
|
||||
machine %HOSTIP password 5up3r53cr37
|
||||
machine %HOSTIP password d1ff3r3nt login anotherone
|
||||
</file>
|
||||
</client>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue