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