• Home
  • Raw
  • Download

Lines Matching refs:curl

31 static CURLcode send_request(CURL *curl, const char *url, int seq,  in send_request()  argument
45 test_setopt(curl, CURLOPT_URL, full_url); in send_request()
46 test_setopt(curl, CURLOPT_VERBOSE, 1L); in send_request()
47 test_setopt(curl, CURLOPT_HEADER, 1L); in send_request()
48 test_setopt(curl, CURLOPT_HTTPGET, 1L); in send_request()
49 test_setopt(curl, CURLOPT_USERPWD, userpwd); in send_request()
50 test_setopt(curl, CURLOPT_HTTPAUTH, auth_scheme); in send_request()
52 res = curl_easy_perform(curl); in send_request()
59 static CURLcode send_wrong_password(CURL *curl, const char *url, int seq, in send_wrong_password() argument
62 return send_request(curl, url, seq, auth_scheme, "testuser:wrongpass"); in send_wrong_password()
65 static CURLcode send_right_password(CURL *curl, const char *url, int seq, in send_right_password() argument
68 return send_request(curl, url, seq, auth_scheme, "testuser:testpass"); in send_right_password()
87 CURL *curl = NULL; in test() local
105 if((curl = curl_easy_init()) == NULL) { in test()
111 res = send_wrong_password(curl, url, 100, main_auth_scheme); in test()
114 curl_easy_reset(curl); in test()
116 res = send_right_password(curl, url, 200, fallback_auth_scheme); in test()
119 curl_easy_reset(curl); in test()
121 curl_easy_cleanup(curl); in test()
125 if((curl = curl_easy_init()) == NULL) { in test()
131 res = send_wrong_password(curl, url, 300, main_auth_scheme); in test()
134 curl_easy_reset(curl); in test()
136 res = send_wrong_password(curl, url, 400, fallback_auth_scheme); in test()
139 curl_easy_reset(curl); in test()
141 res = send_right_password(curl, url, 500, fallback_auth_scheme); in test()
144 curl_easy_reset(curl); in test()
148 curl_easy_cleanup(curl); in test()