Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
40 #include <curl/mprintf.h>
104 CURL *curl;
121 if ((curl = curl_easy_init()) == NULL) {
127 test_setopt(curl, CURLOPT_URL, URL);
133 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
137 test_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, rtp_write);
138 test_setopt(curl, CURLOPT_TIMEOUT, 3L);
139 test_setopt(curl, CURLOPT_VERBOSE, 1L);
140 test_setopt(curl, CURLOPT_WRITEDATA, protofile);
142 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "RTP/AVP/TCP;interleaved=0-1");
143 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP);
145 res = curl_easy_perform(curl);
154 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
157 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_PLAY);
159 res = curl_easy_perform(curl);
168 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
171 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_DESCRIBE);
173 res = curl_easy_perform(curl);
181 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
184 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_PLAY);
186 res = curl_easy_perform(curl);
195 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_RECEIVE);
196 res = curl_easy_perform(curl);
207 curl_easy_cleanup(curl);