Lines Matching refs:curls
115 CURL *curls = NULL; in test() local
125 easy_init(curls); in test()
126 st.easy = curls; /* to allow callbacks access */ in test()
128 easy_setopt(curls, CURLOPT_URL, URL); in test()
129 easy_setopt(curls, CURLOPT_WRITEFUNCTION, write_callback); in test()
130 easy_setopt(curls, CURLOPT_WRITEDATA, &st); in test()
131 easy_setopt(curls, CURLOPT_HEADERFUNCTION, header_callback); in test()
132 easy_setopt(curls, CURLOPT_HEADERDATA, &st); in test()
134 easy_setopt(curls, CURLOPT_NOPROGRESS, 0L); in test()
136 res = curl_easy_perform(curls); in test()
138 check_time(curls, KN(CURLINFO_CONNECT_TIME_T), "done"); in test()
139 check_time(curls, KN(CURLINFO_PRETRANSFER_TIME_T), "done"); in test()
140 check_time(curls, KN(CURLINFO_POSTTRANSFER_TIME_T), "done"); in test()
141 check_time(curls, KN(CURLINFO_STARTTRANSFER_TIME_T), "done"); in test()
143 check_time0(curls, KN(CURLINFO_APPCONNECT_TIME_T), "done"); in test()
144 check_time(curls, KN(CURLINFO_SPEED_DOWNLOAD_T), "done"); in test()
145 check_time(curls, KN(CURLINFO_TOTAL_TIME_T), "done"); in test()
149 curl_easy_cleanup(curls); in test()