Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
26 /* test case and code based on https://github.com/curl/curl/issues/2847 */
57 CURL *curl = curl_easy_init();
60 curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION, sockopt_callback);
61 curl_easy_setopt(curl, CURLOPT_URL, URL);
62 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, g_Data);
63 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)sizeof(g_Data));
67 test_setopt(curl, CURLOPT_DEBUGDATA, &libtest_debug_config);
68 test_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb);
69 test_setopt(curl, CURLOPT_VERBOSE, 1L);
74 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, pHeaderList);
76 code = curl_easy_perform(curl);
80 curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD_T, &uploadSize);
97 curl_easy_cleanup(curl);