Lines Matching defs:curl
12 * are also available at https://curl.haxx.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
31 CURL *curl;
42 curl = curl_easy_init();
43 if(!curl) {
49 test_setopt(curl, CURLOPT_VERBOSE, 1L);
50 test_setopt(curl, CURLOPT_POST, 1L);
51 test_setopt(curl, CURLOPT_AWS_SIGV4, "provider1:provider2:region:service");
52 test_setopt(curl, CURLOPT_USERPWD, "keyId:SecretKey");
53 test_setopt(curl, CURLOPT_HEADER, 0L);
54 test_setopt(curl, CURLOPT_URL, URL);
58 test_setopt(curl, CURLOPT_CONNECT_TO, connect_to);
60 test_setopt(curl, CURLOPT_HTTPHEADER, list);
61 test_setopt(curl, CURLOPT_POSTFIELDS, data);
62 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)sizeof(data));
64 res = curl_easy_perform(curl);
70 curl_easy_cleanup(curl);