mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:03:31 +03:00
tests: Cleaned up netrc testing.
Removed the "netrc_debug" keyword replaced with --netrc-file additions. Removed the debug code from Curl_parsenetrc as it is superseeded by --netrc-file.
This commit is contained in:
parent
06fc3569d2
commit
9f8e960a1a
8 changed files with 8 additions and 51 deletions
|
|
@ -30,9 +30,6 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
netrc_debug
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
|
|
@ -40,7 +37,7 @@ ftp
|
|||
FTP (optional .netrc; no user/pass) dir list PASV
|
||||
</name>
|
||||
<command>
|
||||
--netrc-optional ftp://%HOSTIP:%FTPPORT/
|
||||
--netrc-optional --netrc-file log/netrc ftp://%HOSTIP:%FTPPORT/
|
||||
</command>
|
||||
<file name="log/netrc" >
|
||||
# the following two lines were created while testing curl
|
||||
|
|
|
|||
|
|
@ -31,9 +31,6 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
netrc_debug
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
|
|
@ -41,7 +38,7 @@ ftp
|
|||
FTP (optional .netrc; user/no pass) dir list PASV
|
||||
</name>
|
||||
<command>
|
||||
--netrc-optional ftp://user2@%HOSTIP:%FTPPORT/
|
||||
--netrc-optional --netrc-file log/netrc ftp://user2@%HOSTIP:%FTPPORT/
|
||||
</command>
|
||||
<file name="log/netrc" >
|
||||
# the following two lines were created while testing curl
|
||||
|
|
|
|||
|
|
@ -30,9 +30,6 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
netrc_debug
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
|
|
@ -40,7 +37,7 @@ ftp
|
|||
FTP (optional .netrc; user/passwd supplied) dir list PASV
|
||||
</name>
|
||||
<command>
|
||||
--netrc-optional ftp://mary:mark@%HOSTIP:%FTPPORT/
|
||||
--netrc-optional --netrc-file log/netrc ftp://mary:mark@%HOSTIP:%FTPPORT/
|
||||
</command>
|
||||
<file name="log/netrc" >
|
||||
# the following two lines were created while testing curl
|
||||
|
|
|
|||
|
|
@ -30,9 +30,6 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
netrc_debug
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
|
|
@ -40,7 +37,7 @@ ftp
|
|||
FTP (compulsory .netrc; ignored user/passwd) dir list PASV
|
||||
</name>
|
||||
<command>
|
||||
-n ftp://mary:mark@%HOSTIP:%FTPPORT/
|
||||
-n --netrc-file log/netrc ftp://mary:mark@%HOSTIP:%FTPPORT/
|
||||
</command>
|
||||
<file name="log/netrc" >
|
||||
# the following two lines were created while testing curl
|
||||
|
|
|
|||
|
|
@ -30,9 +30,6 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
|
|||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
netrc_debug
|
||||
</features>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
|
|
@ -40,7 +37,7 @@ ftp
|
|||
FTP (optional .netrc; programmatic user/passwd) dir list PASV
|
||||
</name>
|
||||
<command>
|
||||
--netrc-optional -u romulus:rhemus ftp://mary:mark@%HOSTIP:%FTPPORT/
|
||||
--netrc-optional --netrc-file log/netrc -u romulus:rhemus ftp://mary:mark@%HOSTIP:%FTPPORT/
|
||||
</command>
|
||||
<file name="log/netrc" >
|
||||
# the following two lines were created while testing curl
|
||||
|
|
|
|||
|
|
@ -64,9 +64,6 @@ If this is received, the location following worked
|
|||
|
||||
# Client-side
|
||||
<client>
|
||||
<features>
|
||||
netrc_debug
|
||||
</features>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
|
|
@ -74,7 +71,7 @@ http
|
|||
HTTP Location: following with --netrc-optional
|
||||
</name>
|
||||
<command>
|
||||
http://supersite.com/want/257 -L -x http://%HOSTIP:%HTTPPORT --netrc-optional
|
||||
http://supersite.com/want/257 -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file log/netrc
|
||||
</command>
|
||||
|
||||
# netrc auth for two out of three sites:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue