tests/data: replace & with %AMP

For XML-compliance.

Closes #19923
This commit is contained in:
Viktor Szakats 2025-12-10 22:42:35 +01:00
parent 8db0e286b3
commit 73b732e3e8
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
23 changed files with 48 additions and 71 deletions

View file

@ -5,7 +5,6 @@ HTTP
HTTP POST
cookies
cookiejar
notxml
</keywords>
</info>
@ -36,7 +35,7 @@ http
HTTP with cookie parser and header recording
</name>
<command>
"http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER?parm1=this*that/other/thing&parm2=foobar/%TESTNUMBER" -c %LOGDIR/cookie%TESTNUMBER.txt -d "userid=myname&password=mypassword"
"http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER?parm1=this*that/other/thing%AMPparm2=foobar/%TESTNUMBER" -c %LOGDIR/cookie%TESTNUMBER.txt -d "userid=myname%AMPpassword=mypassword"
</command>
<features>
cookies
@ -47,14 +46,14 @@ local-http
# Verify data after the test has been "shot"
<verify>
<protocol crlf="yes" nonewline="yes">
POST /we/want/%TESTNUMBER?parm1=this*that/other/thing&parm2=foobar/%TESTNUMBER HTTP/1.1
POST /we/want/%TESTNUMBER?parm1=this*that/other/thing%AMPparm2=foobar/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Content-Length: 33
Content-Type: application/x-www-form-urlencoded
userid=myname&password=mypassword
userid=myname%AMPpassword=mypassword
</protocol>
<file name="%LOGDIR/cookie%TESTNUMBER.txt" mode="text">
# Netscape HTTP Cookie File