Lines Matching refs:per
35 struct per_transfer *per, CURLcode per_result,
39 struct per_transfer *per, CURLcode per_result,
43 struct per_transfer *per, CURLcode per_result,
47 struct per_transfer *per, CURLcode per_result,
156 struct per_transfer *per, CURLcode per_result, in writeTime() argument
162 (void)per; in writeTime()
167 if(!curl_easy_getinfo(per->curl, wovar->ci, &us)) in writeTime()
192 static int urlpart(struct per_transfer *per, writeoutid vid, in urlpart() argument
203 if(curl_easy_getinfo(per->curl, CURLINFO_EFFECTIVE_URL, &url)) in urlpart()
207 url = per->url; in urlpart()
273 static void certinfo(struct per_transfer *per) in certinfo() argument
275 if(!per->certinfo) { in certinfo()
277 CURLcode res = curl_easy_getinfo(per->curl, CURLINFO_CERTINFO, &certinfo); in certinfo()
278 per->certinfo = (!res && certinfo) ? certinfo : NULL; in certinfo()
283 struct per_transfer *per, CURLcode per_result, in writeString() argument
297 if(!curl_easy_getinfo(per->curl, CURLINFO_HTTP_VERSION, &version)) { in writeString()
310 if(!curl_easy_getinfo(per->curl, wovar->ci, &strinfo) && strinfo) in writeString()
317 certinfo(per); in writeString()
318 if(per->certinfo) { in writeString()
321 for(i = 0; (i < per->certinfo->num_of_certs) && !error; i++) { in writeString()
324 for(slist = per->certinfo->certinfo[i]; slist; slist = slist->next) { in writeString()
364 strinfo = (per->errorbuffer && per->errorbuffer[0]) ? in writeString()
365 per->errorbuffer : curl_easy_strerror(per_result); in writeString()
370 if(per->outs.filename) { in writeString()
371 strinfo = per->outs.filename; in writeString()
376 if(per->url) { in writeString()
377 strinfo = per->url; in writeString()
401 if(per->url) { in writeString()
402 if(!urlpart(per, wovar->id, &strinfo)) { in writeString()
434 struct per_transfer *per, CURLcode per_result, in writeLong() argument
443 if(!curl_easy_getinfo(per->curl, wovar->ci, &longinfo)) in writeLong()
449 longinfo = per->num_retries; in writeLong()
453 certinfo(per); in writeLong()
454 longinfo = per->certinfo ? per->certinfo->num_of_certs : 0; in writeLong()
458 longinfo = per->num_headers; in writeLong()
466 if(per->urlnum <= INT_MAX) { in writeLong()
467 longinfo = (long)per->urlnum; in writeLong()
496 struct per_transfer *per, CURLcode per_result, in writeOffset() argument
502 (void)per; in writeOffset()
507 if(!curl_easy_getinfo(per->curl, wovar->ci, &offinfo)) in writeOffset()
539 void ourWriteOut(struct OperationConfig *config, struct per_transfer *per, in ourWriteOut() argument
604 per, per_result); in ourWriteOut()
607 headerJSON(stream, per); in ourWriteOut()
610 (void)wv->writefunc(stream, wv, per, per_result, false); in ourWriteOut()
631 if(CURLHE_OK == curl_easy_header(per->curl, hname, 0, in ourWriteOut()