Lines Matching refs:data
38 CURLcode Curl_range(struct Curl_easy *data)
44 if(data->state.use_range && data->state.range) {
47 from_t = curlx_strtoofft(data->state.range, &ptr, 10, &from);
57 data->state.resume_from = from;
58 DEBUGF(infof(data, "RANGE %" CURL_FORMAT_CURL_OFF_T " to end of file",
63 data->req.maxdownload = to;
64 data->state.resume_from = -to;
65 DEBUGF(infof(data, "RANGE the last %" CURL_FORMAT_CURL_OFF_T " bytes",
80 data->req.maxdownload = totalsize + 1; /* include last byte */
81 data->state.resume_from = from;
82 DEBUGF(infof(data, "RANGE from %" CURL_FORMAT_CURL_OFF_T
84 from, data->req.maxdownload));
86 DEBUGF(infof(data, "range-download from %" CURL_FORMAT_CURL_OFF_T
89 from, to, data->req.maxdownload));
92 data->req.maxdownload = -1;