Lines Matching refs:curl
31 CURL *curl; in test() local
42 curl = curl_easy_init(); in test()
43 if(!curl) { in test()
49 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
50 test_setopt(curl, CURLOPT_POST, 1L); in test()
51 test_setopt(curl, CURLOPT_AWS_SIGV4, "provider1:provider2:region:service"); in test()
52 test_setopt(curl, CURLOPT_USERPWD, "keyId:SecretKey"); in test()
53 test_setopt(curl, CURLOPT_HEADER, 0L); in test()
54 test_setopt(curl, CURLOPT_URL, URL); in test()
58 test_setopt(curl, CURLOPT_CONNECT_TO, connect_to); in test()
60 test_setopt(curl, CURLOPT_HTTPHEADER, list); in test()
61 test_setopt(curl, CURLOPT_POSTFIELDS, data); in test()
62 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)sizeof(data)); in test()
64 res = curl_easy_perform(curl); in test()
70 curl_easy_cleanup(curl); in test()