curl/tests/data/test572
Viktor Szakats b5ea0736bb
tests/data: add XML prolog to test files
To formalize they are now XML-compliant (with some asterisks.)

Also to help syntax highlighters work on them to make their content more
readable.

Also:
- Delete empty comment decorations.
- GHA/checksrc: simplify XML check.
- runtests: fail to load test data with XML prolog missing.

Follow-up to bfe6eb1c06 #19927
Follow-up to 87ba80a6df

Closes #19946
2025-12-12 17:17:24 +01:00

122 lines
1.9 KiB
XML

<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
#Informational
<info>
<keywords>
RTSP
GET_PARAMETER
</keywords>
</info>
# Server-side
<reply>
<data1 crlf="headers">
RTSP/1.0 200 OK
Server: RTSPD/libcurl-test
Session: getparams-test
CSeq: 1
</data1>
<data2 crlf="headers">
RTSP/1.0 200 OK
Server: RTSPD/libcurl-test
Session: getparams-test
Content-Type: text/parameters
Content-Length: 32
Cseq: 2
scale=enormous
speed=ludicrous
</data2>
<data3 crlf="headers">
RTSP/1.0 204 OK
Server: RTSPD/libcurl-test
Session: getparams-test
Cseq: 3
</data3>
<data4 crlf="headers">
RTSP/1.0 200 Okie Dokie
Server: RTSPD/libcurl-test
Session: getparams-test
Cseq: 4
Content-Length: 37
packets_received: 1000
jitter: 0.314
</data4>
<data5 crlf="headers">
RTSP/1.0 200 OK
Server: RTSPD/libcurl-test
Session: getparams-test
CSeq: 5
Curl-private: swsclose
Informational: Empty Options Response
</data5>
</reply>
# Client-Side
<client>
<server>
rtsp
</server>
<tool>
lib%TESTNUMBER
</tool>
<name>
RTSP GET_PARAMETER (Put/Heartbeat/Post)
</name>
<command>
rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER %LOGDIR/file%TESTNUMBER.txt
</command>
# file written before test command runs
<file name="%LOGDIR/file%TESTNUMBER.txt">
scale
speed
</file>
</client>
<verify>
<strip>
^If-Modified-Since:.*
</strip>
<protocol crlf="headers">
SETUP rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0001 RTSP/1.0
CSeq: 1
Transport: Planes/Trains/Automobiles
GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0002 RTSP/1.0
CSeq: 2
Session: getparams-test
Content-Length: 12
Content-Type: text/parameters
scale
speed
GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0003 RTSP/1.0
CSeq: 3
Session: getparams-test
GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0004 RTSP/1.0
CSeq: 4
Session: getparams-test
Content-Length: 24
Content-Type: text/parameters
packets_received
jitter
OPTIONS rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER0005 RTSP/1.0
CSeq: 5
Session: getparams-test
</protocol>
</verify>
</testcase>