• Home
  • Raw
  • Download

Lines Matching refs:data

98   struct Curl_easy *data = conn->data;  in Curl_checkheaders()  local
100 for(head = data->set.headers; head; head = head->next) { in Curl_checkheaders()
101 if(strncasecompare(head->data, thisheader, thislen) && in Curl_checkheaders()
102 Curl_headersep(head->data[thislen]) ) in Curl_checkheaders()
103 return head->data; in Curl_checkheaders()
110 CURLcode Curl_get_upload_buffer(struct Curl_easy *data) in Curl_get_upload_buffer() argument
112 if(!data->state.ulbuf) { in Curl_get_upload_buffer()
113 data->state.ulbuf = malloc(data->set.upload_buffer_size); in Curl_get_upload_buffer()
114 if(!data->state.ulbuf) in Curl_get_upload_buffer()
128 struct Curl_easy *data = (struct Curl_easy *)raw; in Curl_trailers_read() local
129 Curl_send_buffer *trailers_buf = data->state.trailers_buf; in Curl_trailers_read()
130 size_t bytes_left = trailers_buf->size_used-data->state.trailers_bytes_sent; in Curl_trailers_read()
134 &trailers_buf->buffer[data->state.trailers_bytes_sent], in Curl_trailers_read()
136 data->state.trailers_bytes_sent += to_copy; in Curl_trailers_read()
143 struct Curl_easy *data = (struct Curl_easy *)raw; in Curl_trailers_left() local
144 Curl_send_buffer *trailers_buf = data->state.trailers_buf; in Curl_trailers_left()
145 return trailers_buf->size_used - data->state.trailers_bytes_sent; in Curl_trailers_left()
156 struct Curl_easy *data = conn->data; in Curl_fillreadbuffer() local
174 const struct HTTP *http = data->req.protop; in Curl_fillreadbuffer()
184 if(data->state.trailers_state == TRAILERS_INITIALIZED) { in Curl_fillreadbuffer()
187 infof(data, in Curl_fillreadbuffer()
189 data->state.trailers_state = TRAILERS_SENDING; in Curl_fillreadbuffer()
190 data->state.trailers_buf = Curl_add_buffer_init(); in Curl_fillreadbuffer()
191 if(!data->state.trailers_buf) { in Curl_fillreadbuffer()
192 failf(data, "Unable to allocate trailing headers buffer !"); in Curl_fillreadbuffer()
195 data->state.trailers_bytes_sent = 0; in Curl_fillreadbuffer()
196 Curl_set_in_callback(data, true); in Curl_fillreadbuffer()
197 trailers_ret_code = data->set.trailer_callback(&trailers, in Curl_fillreadbuffer()
198 data->set.trailer_data); in Curl_fillreadbuffer()
199 Curl_set_in_callback(data, false); in Curl_fillreadbuffer()
201 c = Curl_http_compile_trailers(trailers, data->state.trailers_buf, data); in Curl_fillreadbuffer()
204 failf(data, "operation aborted by trailing headers callback"); in Curl_fillreadbuffer()
209 Curl_add_buffer_free(&data->state.trailers_buf); in Curl_fillreadbuffer()
213 infof(data, "Successfully compiled trailers.\r\n"); in Curl_fillreadbuffer()
220 if(data->req.upload_chunky && in Curl_fillreadbuffer()
221 data->state.trailers_state == TRAILERS_NONE) { in Curl_fillreadbuffer()
224 data->req.upload_fromhere += (8 + 2); /* 32bit hex + CRLF */ in Curl_fillreadbuffer()
228 if(data->state.trailers_state == TRAILERS_SENDING) { in Curl_fillreadbuffer()
236 extra_data = (void *)data; in Curl_fillreadbuffer()
241 readfunc = data->state.fread_func; in Curl_fillreadbuffer()
242 extra_data = data->state.in; in Curl_fillreadbuffer()
245 Curl_set_in_callback(data, true); in Curl_fillreadbuffer()
246 nread = readfunc(data->req.upload_fromhere, 1, in Curl_fillreadbuffer()
248 Curl_set_in_callback(data, false); in Curl_fillreadbuffer()
251 failf(data, "operation aborted by callback"); in Curl_fillreadbuffer()
256 struct SingleRequest *k = &data->req; in Curl_fillreadbuffer()
262 failf(data, "Read callback asked for PAUSE when not supported!"); in Curl_fillreadbuffer()
268 if(data->req.upload_chunky) { in Curl_fillreadbuffer()
270 data->req.upload_fromhere -= (8 + 2); in Curl_fillreadbuffer()
279 failf(data, "read function returned funny value"); in Curl_fillreadbuffer()
283 if(!data->req.forbidchunk && data->req.upload_chunky) { in Curl_fillreadbuffer()
306 (data->set.prefer_ascii) || in Curl_fillreadbuffer()
308 (data->set.crlf)) { in Curl_fillreadbuffer()
319 if(data->state.trailers_state != TRAILERS_SENDING) { in Curl_fillreadbuffer()
324 data->req.upload_fromhere -= hexlen; in Curl_fillreadbuffer()
328 memcpy(data->req.upload_fromhere, hexbuffer, hexlen); in Curl_fillreadbuffer()
334 data->set.trailer_callback != NULL && in Curl_fillreadbuffer()
335 data->state.trailers_state == TRAILERS_NONE) { in Curl_fillreadbuffer()
336 data->state.trailers_state = TRAILERS_INITIALIZED; in Curl_fillreadbuffer()
341 memcpy(data->req.upload_fromhere + nread, in Curl_fillreadbuffer()
352 if(data->set.prefer_ascii) in Curl_fillreadbuffer()
359 result = Curl_convert_to_network(data, data->req.upload_fromhere, in Curl_fillreadbuffer()
369 if(data->state.trailers_state == TRAILERS_SENDING && in Curl_fillreadbuffer()
370 !Curl_trailers_left(data)) { in Curl_fillreadbuffer()
371 Curl_add_buffer_free(&data->state.trailers_buf); in Curl_fillreadbuffer()
372 data->state.trailers_state = TRAILERS_DONE; in Curl_fillreadbuffer()
373 data->set.trailer_data = NULL; in Curl_fillreadbuffer()
374 data->set.trailer_callback = NULL; in Curl_fillreadbuffer()
376 data->req.upload_done = TRUE; in Curl_fillreadbuffer()
377 infof(data, "Signaling end of chunked upload after trailers.\n"); in Curl_fillreadbuffer()
382 data->state.trailers_state != TRAILERS_INITIALIZED) { in Curl_fillreadbuffer()
384 data->req.upload_done = TRUE; in Curl_fillreadbuffer()
385 infof(data, in Curl_fillreadbuffer()
393 else if((data->set.prefer_ascii) && (!sending_http_headers)) { in Curl_fillreadbuffer()
395 result = Curl_convert_to_network(data, data->req.upload_fromhere, nread); in Curl_fillreadbuffer()
415 struct Curl_easy *data = conn->data; in Curl_readrewind() local
416 curl_mimepart *mimepart = &data->set.mimepost; in Curl_readrewind()
424 data->req.keepon &= ~KEEP_SEND; in Curl_readrewind()
430 struct HTTP *http = data->req.protop; in Curl_readrewind()
435 if(data->set.postfields) in Curl_readrewind()
437 else if(data->set.httpreq == HTTPREQ_POST_MIME || in Curl_readrewind()
438 data->set.httpreq == HTTPREQ_POST_FORM) { in Curl_readrewind()
440 failf(data, "Cannot rewind mime/post data"); in Curl_readrewind()
445 if(data->set.seek_func) { in Curl_readrewind()
448 Curl_set_in_callback(data, true); in Curl_readrewind()
449 err = (data->set.seek_func)(data->set.seek_client, 0, SEEK_SET); in Curl_readrewind()
450 Curl_set_in_callback(data, false); in Curl_readrewind()
452 failf(data, "seek callback returned error %d", (int)err); in Curl_readrewind()
456 else if(data->set.ioctl_func) { in Curl_readrewind()
459 Curl_set_in_callback(data, true); in Curl_readrewind()
460 err = (data->set.ioctl_func)(data, CURLIOCMD_RESTARTREAD, in Curl_readrewind()
461 data->set.ioctl_client); in Curl_readrewind()
462 Curl_set_in_callback(data, false); in Curl_readrewind()
463 infof(data, "the ioctl callback returned %d\n", (int)err); in Curl_readrewind()
467 failf(data, "ioctl callback returned error %d", (int)err); in Curl_readrewind()
475 if(data->state.fread_func == (curl_read_callback)fread) { in Curl_readrewind()
476 if(-1 != fseek(data->state.in, 0, SEEK_SET)) in Curl_readrewind()
482 failf(data, "necessary data rewind wasn't possible"); in Curl_readrewind()
531 DEBUGF(infof(conn->data, in read_rewind()
542 bool Curl_meets_timecondition(struct Curl_easy *data, time_t timeofdoc) in Curl_meets_timecondition() argument
544 if((timeofdoc == 0) || (data->set.timevalue == 0)) in Curl_meets_timecondition()
547 switch(data->set.timecondition) { in Curl_meets_timecondition()
550 if(timeofdoc <= data->set.timevalue) { in Curl_meets_timecondition()
551 infof(data, in Curl_meets_timecondition()
553 data->info.timecond = TRUE; in Curl_meets_timecondition()
558 if(timeofdoc >= data->set.timevalue) { in Curl_meets_timecondition()
559 infof(data, in Curl_meets_timecondition()
561 data->info.timecond = TRUE; in Curl_meets_timecondition()
578 static CURLcode readwrite_data(struct Curl_easy *data, in readwrite_data() argument
597 size_t buffersize = data->set.buffer_size; in readwrite_data()
634 DEBUGF(infof(data, "readwrite_data: we're done!\n")); in readwrite_data()
639 Curl_pgrsTime(data, TIMER_STARTTRANSFER); in readwrite_data()
656 DEBUGF(infof(data, "nread <= 0, server closed connection, bailing\n")); in readwrite_data()
666 result = conn->handler->readwrite(data, conn, &nread, &readmore); in readwrite_data()
679 result = Curl_http_readwrite_headers(data, conn, &nread, &stop_reading); in readwrite_data()
685 result = conn->handler->readwrite(data, conn, &nread, &readmore); in readwrite_data()
696 if(Curl_pipeline_wanted(conn->data->multi, CURLPIPE_HTTP1)) { in readwrite_data()
697 infof(data, in readwrite_data()
700 nread, data->state.up.path); in readwrite_data()
704 infof(data, in readwrite_data()
708 nread, data->state.up.path); in readwrite_data()
723 if(data->set.opt_no_body) { in readwrite_data()
737 if(data->req.newurl) { in readwrite_data()
749 infof(data, "Ignoring the response-body\n"); in readwrite_data()
751 if(data->state.resume_from && !k->content_range && in readwrite_data()
752 (data->set.httpreq == HTTPREQ_GET) && in readwrite_data()
755 if(k->size == data->state.resume_from) { in readwrite_data()
758 infof(data, "The entire document is already downloaded"); in readwrite_data()
769 failf(data, "HTTP server doesn't seem to support " in readwrite_data()
774 if(data->set.timecondition && !data->state.range) { in readwrite_data()
780 if(!Curl_meets_timecondition(data, k->timeofdoc)) { in readwrite_data()
784 data->info.httpcode = 304; in readwrite_data()
785 infof(data, "Simulate a HTTP 304 response!\n"); in readwrite_data()
800 if(data->set.verbose) { in readwrite_data()
802 Curl_debug(data, CURLINFO_DATA_IN, data->state.headerbuff, in readwrite_data()
805 Curl_debug(data, CURLINFO_DATA_IN, in readwrite_data()
809 Curl_debug(data, CURLINFO_DATA_IN, in readwrite_data()
827 failf(data, "Failed writing data"); in readwrite_data()
830 failf(data, "%s in chunked-encoding", Curl_chunked_strerror(res)); in readwrite_data()
846 infof(conn->data, "Leftovers after chunking: %zu bytes\n", in readwrite_data()
848 if(Curl_pipeline_wanted(conn->data->multi, CURLPIPE_HTTP1)) { in readwrite_data()
850 infof(conn->data, "Rewinding %zu bytes\n",dataleft); in readwrite_data()
861 DEBUGF(infof(data, "Increasing bytecount by %zu from hbuflen\n", in readwrite_data()
871 if(Curl_pipeline_wanted(conn->data->multi, CURLPIPE_HTTP1)) { in readwrite_data()
872 infof(data, in readwrite_data()
877 excess, data->state.up.path, in readwrite_data()
882 infof(data, in readwrite_data()
901 Curl_pgrsSetDownloadCounter(data, k->bytecount); in readwrite_data()
913 data->state.headerbuff, in readwrite_data()
917 data->state.headerbuff, in readwrite_data()
929 if(conn->data->set.http_ce_skip || !k->writer_stack) { in readwrite_data()
955 if(&k->str[excess] > &k->buf[data->set.buffer_size]) { in readwrite_data()
958 excess = &k->buf[data->set.buffer_size] - k->str; in readwrite_data()
962 result = conn->handler->readwrite(data, conn, &nread, &readmore); in readwrite_data()
995 infof(data, "we are done reading and this is set to close, stop send\n"); in readwrite_data()
1041 static CURLcode readwrite_upload(struct Curl_easy *data, in readwrite_upload() argument
1050 struct SingleRequest *k = &data->req; in readwrite_upload()
1053 Curl_pgrsTime(data, TIMER_STARTTRANSFER); in readwrite_upload()
1061 result = Curl_get_upload_buffer(data); in readwrite_upload()
1065 k->upload_fromhere = data->state.ulbuf; in readwrite_upload()
1083 Curl_expire(data, data->set.expect_100_timeout, EXPIRE_100_TIMEOUT); in readwrite_upload()
1096 result = Curl_fillreadbuffer(conn, data->set.upload_buffer_size, in readwrite_upload()
1124 (data->set.prefer_ascii) || in readwrite_upload()
1126 (data->set.crlf))) { in readwrite_upload()
1128 if(!data->state.scratch) { in readwrite_upload()
1129 data->state.scratch = malloc(2 * data->set.upload_buffer_size); in readwrite_upload()
1130 if(!data->state.scratch) { in readwrite_upload()
1131 failf(data, "Failed to alloc scratch buffer!"); in readwrite_upload()
1145 data->state.scratch[si++] = 0x0d; in readwrite_upload()
1146 data->state.scratch[si] = 0x0a; in readwrite_upload()
1147 if(!data->set.crlf) { in readwrite_upload()
1150 if(data->state.infilesize != -1) in readwrite_upload()
1151 data->state.infilesize++; in readwrite_upload()
1155 data->state.scratch[si] = k->upload_fromhere[i]; in readwrite_upload()
1164 k->upload_fromhere = data->state.scratch; in readwrite_upload()
1195 if(data->set.verbose) in readwrite_upload()
1197 Curl_debug(data, CURLINFO_DATA_OUT, k->upload_fromhere, in readwrite_upload()
1201 Curl_pgrsSetUploadCounter(data, k->writebytecount); in readwrite_upload()
1204 (k->writebytecount == data->state.infilesize)) { in readwrite_upload()
1207 infof(data, "We are completely uploaded and fine\n"); in readwrite_upload()
1222 result = Curl_get_upload_buffer(data); in readwrite_upload()
1225 k->upload_fromhere = data->state.ulbuf; in readwrite_upload()
1249 struct Curl_easy *data, in Curl_readwrite() argument
1253 struct SingleRequest *k = &data->req; in Curl_readwrite()
1276 if(conn->data->state.drain) { in Curl_readwrite()
1278 DEBUGF(infof(data, "Curl_readwrite: forcibly told to drain data\n")); in Curl_readwrite()
1286 failf(data, "select/poll returned error"); in Curl_readwrite()
1296 result = readwrite_data(data, conn, k, &didwhat, done, comeback); in Curl_readwrite()
1305 result = readwrite_upload(data, conn, &didwhat); in Curl_readwrite()
1331 if(ms >= data->set.expect_100_timeout) { in Curl_readwrite()
1335 Curl_expire_done(data, EXPIRE_100_TIMEOUT); in Curl_readwrite()
1336 infof(data, "Done waiting for 100-continue\n"); in Curl_readwrite()
1344 result = Curl_speedcheck(data, k->now); in Curl_readwrite()
1349 if(0 > Curl_timeleft(data, &k->now, FALSE)) { in Curl_readwrite()
1351 failf(data, "Operation timed out after %" CURL_FORMAT_TIMEDIFF_T in Curl_readwrite()
1354 Curl_timediff(k->now, data->progress.t_startsingle), in Curl_readwrite()
1358 failf(data, "Operation timed out after %" CURL_FORMAT_TIMEDIFF_T in Curl_readwrite()
1360 Curl_timediff(k->now, data->progress.t_startsingle), in Curl_readwrite()
1372 if(!(data->set.opt_no_body) && (k->size != -1) && in Curl_readwrite()
1379 (k->bytecount != (k->size + data->state.crlf_conversions)) && in Curl_readwrite()
1382 failf(data, "transfer closed with %" CURL_FORMAT_CURL_OFF_T in Curl_readwrite()
1386 if(!(data->set.opt_no_body) && k->chunk && in Curl_readwrite()
1397 failf(data, "transfer closed with outstanding read data remaining"); in Curl_readwrite()
1423 const struct Curl_easy *data = conn->data; in Curl_single_getsock() local
1435 if((data->req.keepon & KEEP_RECVBITS) == KEEP_RECV) { in Curl_single_getsock()
1444 if((data->req.keepon & KEEP_SENDBITS) == KEEP_SEND) { in Curl_single_getsock()
1466 void Curl_init_CONNECT(struct Curl_easy *data) in Curl_init_CONNECT() argument
1468 data->state.fread_func = data->set.fread_func_set; in Curl_init_CONNECT()
1469 data->state.in = data->set.in_set; in Curl_init_CONNECT()
1477 CURLcode Curl_pretransfer(struct Curl_easy *data) in Curl_pretransfer() argument
1481 if(!data->change.url && !data->set.uh) { in Curl_pretransfer()
1483 failf(data, "No URL set!"); in Curl_pretransfer()
1488 if(data->change.url_alloc) { in Curl_pretransfer()
1490 Curl_safefree(data->change.url); in Curl_pretransfer()
1491 data->change.url_alloc = FALSE; in Curl_pretransfer()
1494 if(!data->change.url && data->set.uh) { in Curl_pretransfer()
1496 uc = curl_url_get(data->set.uh, in Curl_pretransfer()
1497 CURLUPART_URL, &data->set.str[STRING_SET_URL], 0); in Curl_pretransfer()
1499 failf(data, "No URL set!"); in Curl_pretransfer()
1504 data->change.url = data->set.str[STRING_SET_URL]; in Curl_pretransfer()
1509 result = Curl_ssl_initsessions(data, data->set.general_ssl.max_ssl_sessions); in Curl_pretransfer()
1513 data->state.wildcardmatch = data->set.wildcard_enabled; in Curl_pretransfer()
1514 data->set.followlocation = 0; /* reset the location-follow counter */ in Curl_pretransfer()
1515 data->state.this_is_a_follow = FALSE; /* reset this */ in Curl_pretransfer()
1516 data->state.errorbuf = FALSE; /* no error has occurred */ in Curl_pretransfer()
1517 data->state.httpversion = 0; /* don't assume any particular server version */ in Curl_pretransfer()
1519 data->state.authproblem = FALSE; in Curl_pretransfer()
1520 data->state.authhost.want = data->set.httpauth; in Curl_pretransfer()
1521 data->state.authproxy.want = data->set.proxyauth; in Curl_pretransfer()
1522 Curl_safefree(data->info.wouldredirect); in Curl_pretransfer()
1523 data->info.wouldredirect = NULL; in Curl_pretransfer()
1525 if(data->set.httpreq == HTTPREQ_PUT) in Curl_pretransfer()
1526 data->state.infilesize = data->set.filesize; in Curl_pretransfer()
1527 else if((data->set.httpreq != HTTPREQ_GET) && in Curl_pretransfer()
1528 (data->set.httpreq != HTTPREQ_HEAD)) { in Curl_pretransfer()
1529 data->state.infilesize = data->set.postfieldsize; in Curl_pretransfer()
1530 if(data->set.postfields && (data->state.infilesize == -1)) in Curl_pretransfer()
1531 data->state.infilesize = (curl_off_t)strlen(data->set.postfields); in Curl_pretransfer()
1534 data->state.infilesize = 0; in Curl_pretransfer()
1537 if(data->change.cookielist) in Curl_pretransfer()
1538 Curl_cookie_loadfiles(data); in Curl_pretransfer()
1541 if(data->change.resolve) in Curl_pretransfer()
1542 result = Curl_loadhostpairs(data); in Curl_pretransfer()
1548 data->state.allow_port = TRUE; in Curl_pretransfer()
1554 if(!data->set.no_signal) in Curl_pretransfer()
1555 data->state.prev_signal = signal(SIGPIPE, SIG_IGN); in Curl_pretransfer()
1558 Curl_initinfo(data); /* reset session-specific information "variables" */ in Curl_pretransfer()
1559 Curl_pgrsResetTransferSizes(data); in Curl_pretransfer()
1560 Curl_pgrsStartNow(data); in Curl_pretransfer()
1565 data->state.authhost.picked &= data->state.authhost.want; in Curl_pretransfer()
1566 data->state.authproxy.picked &= data->state.authproxy.want; in Curl_pretransfer()
1568 if(data->state.wildcardmatch) { in Curl_pretransfer()
1569 struct WildcardData *wc = &data->wildcard; in Curl_pretransfer()
1584 CURLcode Curl_posttransfer(struct Curl_easy *data) in Curl_posttransfer() argument
1588 if(!data->set.no_signal) in Curl_posttransfer()
1589 signal(SIGPIPE, data->state.prev_signal); in Curl_posttransfer()
1591 (void)data; /* unused parameter */ in Curl_posttransfer()
1603 CURLcode Curl_follow(struct Curl_easy *data, in Curl_follow() argument
1608 (void)data; in Curl_follow()
1621 if((data->set.maxredirs != -1) && in Curl_follow()
1622 (data->set.followlocation >= data->set.maxredirs)) { in Curl_follow()
1629 data->state.this_is_a_follow = TRUE; in Curl_follow()
1631 data->set.followlocation++; /* count location-followers */ in Curl_follow()
1633 if(data->set.http_auto_referer) { in Curl_follow()
1638 if(data->change.referer_alloc) { in Curl_follow()
1639 Curl_safefree(data->change.referer); in Curl_follow()
1640 data->change.referer_alloc = FALSE; in Curl_follow()
1643 data->change.referer = strdup(data->change.url); in Curl_follow()
1644 if(!data->change.referer) in Curl_follow()
1646 data->change.referer_alloc = TRUE; /* yes, free this later */ in Curl_follow()
1655 DEBUGASSERT(data->state.uh); in Curl_follow()
1656 uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl, in Curl_follow()
1670 uc = curl_url_get(data->state.uh, CURLUPART_URL, &newurl, 0); in Curl_follow()
1678 data->info.wouldredirect = newurl; in Curl_follow()
1681 failf(data, "Maximum (%ld) redirects followed", data->set.maxredirs); in Curl_follow()
1688 data->state.allow_port = FALSE; in Curl_follow()
1690 if(data->change.url_alloc) in Curl_follow()
1691 Curl_safefree(data->change.url); in Curl_follow()
1693 data->change.url = newurl; in Curl_follow()
1694 data->change.url_alloc = TRUE; in Curl_follow()
1696 infof(data, "Issue another request to this URL: '%s'\n", data->change.url); in Curl_follow()
1705 switch(data->info.httpcode) { in Curl_follow()
1735 if((data->set.httpreq == HTTPREQ_POST in Curl_follow()
1736 || data->set.httpreq == HTTPREQ_POST_FORM in Curl_follow()
1737 || data->set.httpreq == HTTPREQ_POST_MIME) in Curl_follow()
1738 && !(data->set.keep_post & CURL_REDIR_POST_301)) { in Curl_follow()
1739 infof(data, "Switch from POST to GET\n"); in Curl_follow()
1740 data->set.httpreq = HTTPREQ_GET; in Curl_follow()
1760 if((data->set.httpreq == HTTPREQ_POST in Curl_follow()
1761 || data->set.httpreq == HTTPREQ_POST_FORM in Curl_follow()
1762 || data->set.httpreq == HTTPREQ_POST_MIME) in Curl_follow()
1763 && !(data->set.keep_post & CURL_REDIR_POST_302)) { in Curl_follow()
1764 infof(data, "Switch from POST to GET\n"); in Curl_follow()
1765 data->set.httpreq = HTTPREQ_GET; in Curl_follow()
1772 if(data->set.httpreq != HTTPREQ_GET in Curl_follow()
1773 && !(data->set.keep_post & CURL_REDIR_POST_303)) { in Curl_follow()
1774 data->set.httpreq = HTTPREQ_GET; /* enforce GET request */ in Curl_follow()
1775 infof(data, "Disables POST, goes with %s\n", in Curl_follow()
1776 data->set.opt_no_body?"HEAD":"GET"); in Curl_follow()
1794 Curl_pgrsTime(data, TIMER_REDIRECT); in Curl_follow()
1795 Curl_pgrsResetTransferSizes(data); in Curl_follow()
1807 struct Curl_easy *data = conn->data; in Curl_retry_request() local
1813 if(data->set.upload && in Curl_retry_request()
1817 if((data->req.bytecount + data->req.headerbytecount == 0) && in Curl_retry_request()
1819 (!data->set.opt_no_body in Curl_retry_request()
1821 (data->set.rtspreq != RTSPREQ_RECEIVE)) in Curl_retry_request()
1830 else if(data->state.refused_stream && in Curl_retry_request()
1831 (data->req.bytecount + data->req.headerbytecount == 0) ) { in Curl_retry_request()
1837 infof(conn->data, "REFUSED_STREAM, retrying a fresh connect\n"); in Curl_retry_request()
1838 data->state.refused_stream = FALSE; /* clear again */ in Curl_retry_request()
1842 infof(conn->data, "Connection died, retrying a fresh connect\n"); in Curl_retry_request()
1843 *url = strdup(conn->data->change.url); in Curl_retry_request()
1856 if(data->req.writebytecount) { in Curl_retry_request()
1874 struct Curl_easy *data, /* transfer */ in Curl_setup_transfer() argument
1882 struct SingleRequest *k = &data->req; in Curl_setup_transfer()
1883 struct connectdata *conn = data->conn; in Curl_setup_transfer()
1911 Curl_pgrsSetDownloadSize(data, size); in Curl_setup_transfer()
1914 if(k->getheader || !data->set.opt_no_body) { in Curl_setup_transfer()
1920 struct HTTP *http = data->req.protop; in Curl_setup_transfer()
1930 if((data->state.expect100header) && in Curl_setup_transfer()
1939 Curl_expire(data, data->set.expect_100_timeout, EXPIRE_100_TIMEOUT); in Curl_setup_transfer()
1942 if(data->state.expect100header) in Curl_setup_transfer()