| 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 |
| 15 |
Server: RTSPD/libcurl-test |
| 16 |
Cseq: 1 |
| 17 |
|
| 18 |
</data1> |
| 19 |
|
| 20 |
<data2> |
| 21 |
RTSP/1.0 200 OK |
| 22 |
Server: RTSPD/libcurl-test |
| 23 |
Cseq: 2 |
| 24 |
Content-Length: 70 |
| 25 |
Content-Type: application/sdp |
| 26 |
|
| 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 |
| 34 |
Server: RTSPD/libcurl-test |
| 35 |
Cseq: 3 |
| 36 |
|
| 37 |
</data3> |
| 38 |
<data4> |
| 39 |
RTSP/1.0 200 OK |
| 40 |
Server: RTSPD/libcurl-test |
| 41 |
CSeq: 4 |
| 42 |
Curl-private: swsclose |
| 43 |
Informational: Empty Options Response |
| 44 |
|
| 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 |
[email protected] (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 |
| 85 |
CSeq: 1 |
| 86 |
Content-Length: 306 |
| 87 |
Content-Type: application/sdp |
| 88 |
|
| 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 |
[email protected] (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 |
| 101 |
CSeq: 2 |
| 102 |
Accept: application/sdp |
| 103 |
|
| 104 |
ANNOUNCE rtsp://%HOSTIP:%RTSPPORT/5680003 RTSP/1.0 |
| 105 |
CSeq: 3 |
| 106 |
Content-Type: posty goodness |
| 107 |
Content-Length: 35 |
| 108 |
|
| 109 |
postyfield=postystuff&project=curl |
| 110 |
OPTIONS rtsp://%HOSTIP:%RTSPPORT/5680004 RTSP/1.0 |
| 111 |
CSeq: 4 |
| 112 |
|
| 113 |
</protocol> |
| 114 |
</verify> |
| 115 |
|
| 116 |
</testcase> |