• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/tests/libtest/

Lines Matching defs:curl

12  * are also available at http://curl.haxx.se/docs/copyright.html.
31 #include <curl/mprintf.h>
47 CURL *curl;
60 if ((curl = curl_easy_init()) == NULL) {
67 test_setopt(curl, CURLOPT_HEADERDATA, stdout);
68 test_setopt(curl, CURLOPT_WRITEDATA, stdout);
69 test_setopt(curl, CURLOPT_VERBOSE, 1L);
71 test_setopt(curl, CURLOPT_URL, URL);
78 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
82 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "Planes/Trains/Automobiles");
83 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP);
84 res = curl_easy_perform(curl);
92 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
107 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_GET_PARAMETER);
109 test_setopt(curl, CURLOPT_READDATA, paramsf);
110 test_setopt(curl, CURLOPT_UPLOAD, 1L);
111 test_setopt(curl, CURLOPT_INFILESIZE_LARGE, (curl_off_t) file_info.st_size);
113 res = curl_easy_perform(curl);
117 test_setopt(curl, CURLOPT_UPLOAD, 0L);
126 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
130 res = curl_easy_perform(curl);
140 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
144 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_GET_PARAMETER);
145 test_setopt(curl, CURLOPT_POSTFIELDS, "packets_received\njitter\n");
147 res = curl_easy_perform(curl);
151 test_setopt(curl, CURLOPT_POSTFIELDS, NULL);
158 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
162 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_OPTIONS);
163 res = curl_easy_perform(curl);
176 curl_easy_cleanup(curl);