Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test568
1 <testcase>
2
3 #Informational
4 <info>
5 <keywords>
6 RTSP
7 ANNOUNCE
8 </keywords>
9 </info>
10
11 # Server-side
12 <reply>
13 <data1>
14 RTSP/1.0 200 OK\r
15 Server: RTSPD/libcurl-test\r
16 Cseq: 1\r
17 \r
18 </data1>
19
20 <data2>
21 RTSP/1.0 200 OK\r
22 Server: RTSPD/libcurl-test\r
23 Cseq: 2\r
24 Content-Length: 70\r
25 Content-Type: application/sdp\r
26 \r
27 v=0
28 s=rtspd SDP
29 i=A fake SDP reply
30 u=http://www.curl.example.com/fakesdp.ps
31 </data2>
32 <data3>
33 RTSP/1.0 200 Okie Dokie\r
34 Server: RTSPD/libcurl-test\r
35 Cseq: 3\r
36 \r
37 </data3>
38 <data4>
39 RTSP/1.0 200 OK\r
40 Server: RTSPD/libcurl-test\r
41 CSeq: 4\r
42 Curl-private: swsclose\r
43 Informational: Empty Options Response\r
44 \r
45 </data4>
46 </reply>
47
48 # Client-Side
49 <client>
50 <server>
51 rtsp
52 </server>
53 <tool>
54 lib568
55 </tool>
56
57 <name>
58 RTSP Announce (PUT and POST style) test
59 </name>
60 <command>
61 rtsp://%HOSTIP:%RTSPPORT/568
62 </command>
63 # file written before test command runs
64 <file name="log/file568.txt">
65 v=0
66 o=mhandley 2890844526 2890845468 IN IP4 126.16.64.4
67 s=SDP Seminar
68 i=A Seminar on the session description protocol
69 u=http://www.cs.ucl.ac.uk/staff/M.Handley/sdp.03.ps
70 e=mjh@isi.edu (Mark Handley)
71 c=IN IP4 224.2.17.12/127
72 t=2873397496 2873404696
73 a=recvonly
74 m=audio 3456 RTP/AVP 0
75 m=video 2232 RTP/AVP 31
76 </file>
77 </client>
78
79 <verify>
80 <strip>
81 ^If-Modified-Since:.*
82 </strip>
83 <protocol>
84 ANNOUNCE rtsp://%HOSTIP:%RTSPPORT/5680001 RTSP/1.0\r
85 CSeq: 1\r
86 Content-Length: 306\r
87 Content-Type: application/sdp\r
88 \r
89 v=0
90 o=mhandley 2890844526 2890845468 IN IP4 126.16.64.4
91 s=SDP Seminar
92 i=A Seminar on the session description protocol
93 u=http://www.cs.ucl.ac.uk/staff/M.Handley/sdp.03.ps
94 e=mjh@isi.edu (Mark Handley)
95 c=IN IP4 224.2.17.12/127
96 t=2873397496 2873404696
97 a=recvonly
98 m=audio 3456 RTP/AVP 0
99 m=video 2232 RTP/AVP 31
100 DESCRIBE rtsp://%HOSTIP:%RTSPPORT/5680002 RTSP/1.0\r
101 CSeq: 2\r
102 Accept: application/sdp\r
103 \r
104 ANNOUNCE rtsp://%HOSTIP:%RTSPPORT/5680003 RTSP/1.0\r
105 CSeq: 3\r
106 Content-Type: posty goodness\r
107 Content-Length: 35\r
108 \r
109 postyfield=postystuff&project=curl
110 OPTIONS rtsp://%HOSTIP:%RTSPPORT/5680004 RTSP/1.0\r
111 CSeq: 4\r
112 \r
113 </protocol>
114 </verify>
115
116 </testcase>
117