1 <testcase> 2 3 #Informational 4 <info> 5 <keywords> 6 RTSP 7 SESSION_ID 8 </keywords> 9 </info> 10 11 # Server-side 12 <reply> 13 <data1> 14 RTSP/1.0 200 OK 15 Server: RTSPD/libcurl-test 16 CSeq: 1 17 Session: 00.+1-am-aSe55ion_id\$yes-i-am\$;timeout=60 18 19 </data1> 20 <data2> 21 RTSP/1.0 200 OK 22 Server: RTSPD/libcurl-test 23 CSeq: 2 24 25 </data2> 26 <data3> 27 RTSP/1.0 200 OK 28 Session: \$extraspaces ignore-this-part-------;foo=bar 29 CSeq: 3 30 Server: RTSPD/libcurl-test 31 32 </data3> 33 <data4> 34 RTSP/1.0 200 OK 35 CSeq: 4 36 Server: RTSPD/libcurl-test 37 38 </data4> 39 <data5> 40 RTSP/1.0 200 OK 41 Session: A 42 Server: RTSPD/libcurl-test 43 CSeq: 5 44 Informational: Single Character 45 46 </data5> 47 <data6> 48 RTSP/1.0 200 OK 49 Server: RTSPD/libcurl-test 50 Curl-Private: swsclose 51 CSeq: 6 52 53 </data6> 54 </reply> 55 56 # Client-Side 57 <client> 58 <server> 59 rtsp 60 </server> 61 <tool> 62 lib569 63 </tool> 64 65 <name> 66 RTSP Session ID parsing 67 </name> 68 <command> 69 rtsp://%HOSTIP:%RTSPPORT/569 log/idfile.txt 70 </command> 71 </client> 72 73 <verify> 74 <strip> 75 ^If-Modified-Since:.* 76 </strip> 77 <protocol> 78 SETUP rtsp://%HOSTIP:%RTSPPORT/5690001 RTSP/1.0 79 CSeq: 1 80 Transport: Fake/NotReal/JustATest;foo=baz 81 82 TEARDOWN rtsp://%HOSTIP:%RTSPPORT/5690002 RTSP/1.0 83 CSeq: 2 84 Session: 00.+1-am-aSe55ion_id\$yes-i-am\$ 85 86 SETUP rtsp://%HOSTIP:%RTSPPORT/5690003 RTSP/1.0 87 CSeq: 3 88 Transport: Fake/NotReal/JustATest;foo=baz 89 90 TEARDOWN rtsp://%HOSTIP:%RTSPPORT/5690004 RTSP/1.0 91 CSeq: 4 92 Session: \$extraspaces 93 94 SETUP rtsp://%HOSTIP:%RTSPPORT/5690005 RTSP/1.0 95 CSeq: 5 96 Transport: Fake/NotReal/JustATest;foo=baz 97 98 TEARDOWN rtsp://%HOSTIP:%RTSPPORT/5690006 RTSP/1.0 99 CSeq: 6 100 Session: A 101 102 </protocol> 103 <file name="log/idfile.txt"> 104 Got Session ID: [00.+1-am-aSe55ion_id\$yes-i-am\$] 105 Got Session ID: [\$extraspaces] 106 Got Session ID: [A] 107 </file> 108 </verify> 109 110 </testcase> 111 112