Lines Matching refs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
106 CURL *curl;
122 curl = curl_easy_init();
123 if(!curl) {
129 test_setopt(curl, CURLOPT_URL, URL);
136 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
140 test_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write);
141 test_setopt(curl, CURLOPT_TIMEOUT, 30L);
142 test_setopt(curl, CURLOPT_VERBOSE, 1L);
143 test_setopt(curl, CURLOPT_WRITEDATA, protofile);
145 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "RTP/AVP/TCP;interleaved=0-1");
146 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP);
148 res = curl_easy_perform(curl);
158 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
161 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_PLAY);
163 res = curl_easy_perform(curl);
173 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
176 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_DESCRIBE);
178 res = curl_easy_perform(curl);
187 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
190 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_PLAY);
192 res = curl_easy_perform(curl);
201 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_RECEIVE);
202 res = curl_easy_perform(curl);
211 curl_easy_cleanup(curl);