• Home
  • Raw
  • Download

Lines Matching full:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
30 static CURLcode send_request(CURL *curl, const char *url, int seq, in send_request() argument
44 test_setopt(curl, CURLOPT_URL, full_url); in send_request()
45 test_setopt(curl, CURLOPT_VERBOSE, 1L); in send_request()
46 test_setopt(curl, CURLOPT_HEADER, 1L); in send_request()
47 test_setopt(curl, CURLOPT_HTTPGET, 1L); in send_request()
48 test_setopt(curl, CURLOPT_USERPWD, userpwd); in send_request()
49 test_setopt(curl, CURLOPT_HTTPAUTH, auth_scheme); in send_request()
51 res = curl_easy_perform(curl); in send_request()
58 static CURLcode send_wrong_password(CURL *curl, const char *url, int seq, in send_wrong_password() argument
61 return send_request(curl, url, seq, auth_scheme, "testuser:wrongpass"); in send_wrong_password()
64 static CURLcode send_right_password(CURL *curl, const char *url, int seq, in send_right_password() argument
67 return send_request(curl, url, seq, auth_scheme, "testuser:testpass"); in send_right_password()
86 CURL *curl = NULL; in test() local
104 curl = curl_easy_init(); in test()
105 if(!curl) { in test()
111 res = send_wrong_password(curl, url, 100, main_auth_scheme); in test()
115 res = send_right_password(curl, url, 200, fallback_auth_scheme); in test()
119 curl_easy_cleanup(curl); in test()
122 curl = curl_easy_init(); in test()
123 if(!curl) { in test()
129 res = send_wrong_password(curl, url, 300, main_auth_scheme); in test()
133 res = send_wrong_password(curl, url, 400, fallback_auth_scheme); in test()
137 res = send_right_password(curl, url, 500, fallback_auth_scheme); in test()
143 curl_easy_cleanup(curl); in test()