xref: /curl/tests/data/test3100 (revision 0baca08d)
1<testcase>
2
3#Informational
4<info>
5<keywords>
6RTSP
7RTSP Basic auth
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data>
14RTSP/1.0 401 Unauthorized please swsbounce
15Server: RTSPD/libcurl-test
16CSeq: 1
17WWW-Authenticate: Basic realm="please-auth-me"
18
19</data>
20<data1>
21RTSP/1.0 200 OK
22Server: RTSPD/libcurl-test
23CSeq: 2
24Content-Base: rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER
25Content-Length: 80
26Curl-private: swsclose
27
28v=0
29s=rtspd SDP
30i=A fake SDP reply
31u=http://www.curl.example.com/fakesdp.ps
32</data1>
33<datacheck>
34RTSP/1.0 401 Unauthorized please swsbounce
35Server: RTSPD/libcurl-test
36CSeq: 1
37WWW-Authenticate: Basic realm="please-auth-me"
38
39RTSP/1.0 200 OK
40Server: RTSPD/libcurl-test
41CSeq: 2
42Content-Base: rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER
43Content-Length: 80
44Curl-private: swsclose
45
46v=0
47s=rtspd SDP
48i=A fake SDP reply
49u=http://www.curl.example.com/fakesdp.ps
50</datacheck>
51</reply>
52
53# Client-Side
54<client>
55<server>
56rtsp
57</server>
58<tool>
59lib%TESTNUMBER
60</tool>
61
62<name>
63RTSP Authentication check
64</name>
65<command>
66rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER
67</command>
68</client>
69
70# Verify data after the test has been "shot"
71<verify>
72<protocol>
73DESCRIBE rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER RTSP/1.0
74CSeq: 1
75Accept: application/sdp
76
77DESCRIBE rtsp://%HOSTIP:%RTSPPORT/%TESTNUMBER RTSP/1.0
78CSeq: 2
79Accept: application/sdp
80Authorization: Basic dXNlcjpwYXNzd29yZA==
81
82</protocol>
83</verify>
84
85</testcase>
86