Lines Matching refs:per

90   struct per_transfer *per = userdata;  in tool_header_cb()  local
91 struct HdrCbData *hdrcbdata = &per->hdrcbdata; in tool_header_cb()
92 struct OutStruct *outs = &per->outs; in tool_header_cb()
93 struct OutStruct *heads = &per->heads; in tool_header_cb()
94 struct OutStruct *etag_save = &per->etag_save; in tool_header_cb()
100 if(!per->config) in tool_header_cb()
105 warnf(per->config->global, "Header data exceeds single call write limit"); in tool_header_cb()
120 if(per->config->headerfile && heads->stream) { in tool_header_cb()
126 errorf(per->config->global, "Failed writing headers to %s", in tool_header_cb()
127 per->config->headerfile); in tool_header_cb()
132 curl_easy_getinfo(per->curl, CURLINFO_SCHEME, &scheme); in tool_header_cb()
136 curl_easy_getinfo(per->curl, CURLINFO_RESPONSE_CODE, &response); in tool_header_cb()
145 else if(per->config->etag_save_file && etag_save->stream && in tool_header_cb()
221 if(per->config->output_dir) { in tool_header_cb()
222 outs->filename = aprintf("%s/%s", per->config->output_dir, in tool_header_cb()
236 if(!tool_create_output_file(outs, per->config)) in tool_header_cb()
238 if(tool_write_headers(&per->hdrcbdata, outs->stream)) in tool_header_cb()
243 if(!outs->stream && !tool_create_output_file(outs, per->config)) in tool_header_cb()
245 if(tool_write_headers(&per->hdrcbdata, outs->stream)) in tool_header_cb()
275 if(per->was_last_header_empty) in tool_header_cb()
276 per->num_headers = 0; in tool_header_cb()
277 per->was_last_header_empty = FALSE; in tool_header_cb()
278 per->num_headers++; in tool_header_cb()
281 per->was_last_header_empty = TRUE; in tool_header_cb()
289 if(!outs->stream && !tool_create_output_file(outs, per->config)) in tool_header_cb()
305 write_linked_location(per->curl, &value[1], cb - namelen - 1, in tool_header_cb()