Lines Matching refs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
47 CURL *curl;
60 curl = curl_easy_init();
61 if(!curl) {
67 test_setopt(curl, CURLOPT_HEADERDATA, stdout);
68 test_setopt(curl, CURLOPT_WRITEDATA, stdout);
70 test_setopt(curl, CURLOPT_URL, URL);
77 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
91 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_ANNOUNCE);
93 test_setopt(curl, CURLOPT_READDATA, sdpf);
94 test_setopt(curl, CURLOPT_UPLOAD, 1L);
95 test_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t) file_info.st_size);
96 test_setopt(curl, CURLOPT_VERBOSE, 1L);
99 res = curl_easy_perform(curl);
103 test_setopt(curl, CURLOPT_UPLOAD, 0L);
113 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
117 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_DESCRIBE);
118 res = curl_easy_perform(curl);
129 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
139 test_setopt(curl, CURLOPT_RTSPHEADER, custom_headers);
140 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_ANNOUNCE);
141 test_setopt(curl, CURLOPT_POSTFIELDS,
142 "postyfield=postystuff&project=curl\n");
144 res = curl_easy_perform(curl);
148 test_setopt(curl, CURLOPT_POSTFIELDS, NULL);
149 test_setopt(curl, CURLOPT_RTSPHEADER, NULL);
159 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
163 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_OPTIONS);
164 res = curl_easy_perform(curl);
176 curl_easy_cleanup(curl);