From 1ac168e576d8e78b58640e1e997249717529b482 Mon Sep 17 00:00:00 2001 From: Chris Conroy Date: Wed, 24 Mar 2010 01:35:03 -0400 Subject: Fix RTSP GET_PARAMETER empty and non-empty operation. Test coverage included. Thanks to Massimo Callegari for the bug report --- tests/data/Makefile.am | 2 +- tests/data/test572 | 121 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 tests/data/test572 (limited to 'tests/data') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 1878e013c..6f2c09079 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -65,7 +65,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test564 test1101 test1102 test1103 test1104 test299 test310 test311 \ test312 test1105 test565 test800 test1106 test801 test566 test802 test803 \ test1107 test1108 test1109 test1110 test1111 test1112 test129 test567 \ - test568 test569 test570 test571 test804 + test568 test569 test570 test571 test804 test572 filecheck: @mkdir test-place; \ diff --git a/tests/data/test572 b/tests/data/test572 new file mode 100644 index 000000000..c06e531fc --- /dev/null +++ b/tests/data/test572 @@ -0,0 +1,121 @@ + + +#Informational + + +RTSP +GET_PARAMETER + + + +# Server-side + + +RTSP/1.0 200 OK +Server: RTSPD/libcurl-test +Session: getparams-test +CSeq: 1 + + + + +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 + + + +RTSP/1.0 200 OK +Server: RTSPD/libcurl-test +Session: getparams-test +Cseq: 3 + + + + +RTSP/1.0 200 Okie Dokie +Server: RTSPD/libcurl-test +Session: getparams-test +Cseq: 4 +Content-Length: 37 + +packets_received: 1000 +jitter: 0.314 + + +RTSP/1.0 200 OK +Server: RTSPD/libcurl-test +Session: getparams-test +CSeq: 5 +Curl-private: swsclose +Informational: Empty Options Response + + + + +# Client-Side + + +rtsp + + +lib572 + + + +RTSP GET_PARAMETER (Put/Heartbeat/Post) + + +rtsp://%HOSTIP:%RTSPPORT/572 + +# file written before test command runs + +scale +speed + + + + + +^If-Modified-Since:.* + + +SETUP rtsp://%HOSTIP:%RTSPPORT/5720001 RTSP/1.0 +CSeq: 1 +Transport: Planes/Trains/Automobiles + +GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/5720002 RTSP/1.0 +CSeq: 2 +Session: getparams-test +Content-Length: 12 +Content-Type: text/parameters + +scale +speed +GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/5720003 RTSP/1.0 +CSeq: 3 +Session: getparams-test + +GET_PARAMETER rtsp://%HOSTIP:%RTSPPORT/5720004 RTSP/1.0 +CSeq: 4 +Session: getparams-test +Content-Length: 24 +Content-Type: text/parameters + +packets_received +jitter +OPTIONS rtsp://%HOSTIP:%RTSPPORT/5720005 RTSP/1.0 +CSeq: 5 +Session: getparams-test + + + + + + -- cgit v1.2.3