mirror of
https://github.com/curl/curl.git
synced 2026-07-10 05:47:18 +03:00
test 679: add a quoted string name in a netrc test
By using quotes a user name can have a space in netrc Closes #22147
This commit is contained in:
parent
78267398e5
commit
9adc32a6e2
1 changed files with 3 additions and 3 deletions
|
|
@ -30,13 +30,13 @@ Funny-head: yesyes
|
|||
http
|
||||
</server>
|
||||
<name>
|
||||
netrc with quoted password
|
||||
netrc with quoted username and password
|
||||
</name>
|
||||
<command>
|
||||
--netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
|
||||
</command>
|
||||
<file name="%LOGDIR/netrc%TESTNUMBER" >
|
||||
machine %HOSTIP login user1 password "with spaces and \"\n\r\t\a"
|
||||
machine %HOSTIP login "user one" password "with spaces and \"\n\r\t\a"
|
||||
</file>
|
||||
</client>
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ machine %HOSTIP login user1 password "with spaces and \"\n\r\t\a"
|
|||
<protocol crlf="headers">
|
||||
GET / HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Authorization: Basic %b64[user1:with%20spaces%20and%20"%0a%0d%09a]b64%
|
||||
Authorization: Basic %b64[user%20one:with%20spaces%20and%20"%0a%0d%09a]b64%
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue