Lines Matching refs:state

360     data->state.select_bits = CURL_CSELECT_IN;  in sendrecv_dl()
362 data->state.select_bits |= CURL_CSELECT_OUT; in sendrecv_dl()
427 if(data->state.select_bits) { in Curl_sendrecv()
428 if(select_bits_paused(data, data->state.select_bits)) { in Curl_sendrecv()
434 data->state.select_bits = 0; in Curl_sendrecv()
529 data->state.fread_func = data->set.fread_func_set; in Curl_init_CONNECT()
530 data->state.in = data->set.in_set; in Curl_init_CONNECT()
531 data->state.upload = (data->state.httpreq == HTTPREQ_PUT); in Curl_init_CONNECT()
543 if(!data->state.url && !data->set.uh) { in Curl_pretransfer()
550 if(data->state.url_alloc) { in Curl_pretransfer()
552 Curl_safefree(data->state.url); in Curl_pretransfer()
553 data->state.url_alloc = FALSE; in Curl_pretransfer()
556 if(!data->state.url && data->set.uh) { in Curl_pretransfer()
573 data->state.prefer_ascii = data->set.prefer_ascii; in Curl_pretransfer()
575 data->state.list_only = data->set.list_only; in Curl_pretransfer()
577 data->state.httpreq = data->set.method; in Curl_pretransfer()
578 data->state.url = data->set.str[STRING_SET_URL]; in Curl_pretransfer()
587 data->state.requests = 0; in Curl_pretransfer()
588 data->state.followlocation = 0; /* reset the location-follow counter */ in Curl_pretransfer()
589 data->state.this_is_a_follow = FALSE; /* reset this */ in Curl_pretransfer()
590 data->state.errorbuf = FALSE; /* no error has occurred */ in Curl_pretransfer()
591 data->state.httpwant = data->set.httpwant; in Curl_pretransfer()
592 data->state.httpversion = 0; in Curl_pretransfer()
593 data->state.authproblem = FALSE; in Curl_pretransfer()
594 data->state.authhost.want = data->set.httpauth; in Curl_pretransfer()
595 data->state.authproxy.want = data->set.proxyauth; in Curl_pretransfer()
599 if(data->state.httpreq == HTTPREQ_PUT) in Curl_pretransfer()
600 data->state.infilesize = data->set.filesize; in Curl_pretransfer()
601 else if((data->state.httpreq != HTTPREQ_GET) && in Curl_pretransfer()
602 (data->state.httpreq != HTTPREQ_HEAD)) { in Curl_pretransfer()
603 data->state.infilesize = data->set.postfieldsize; in Curl_pretransfer()
604 if(data->set.postfields && (data->state.infilesize == -1)) in Curl_pretransfer()
605 data->state.infilesize = (curl_off_t)strlen(data->set.postfields); in Curl_pretransfer()
608 data->state.infilesize = 0; in Curl_pretransfer()
614 if(data->state.resolve) in Curl_pretransfer()
624 data->state.allow_port = TRUE; in Curl_pretransfer()
631 data->state.prev_signal = signal(SIGPIPE, SIG_IGN); in Curl_pretransfer()
641 data->state.authhost.picked &= data->state.authhost.want; in Curl_pretransfer()
642 data->state.authproxy.picked &= data->state.authproxy.want; in Curl_pretransfer()
645 data->state.wildcardmatch = data->set.wildcard_enabled; in Curl_pretransfer()
646 if(data->state.wildcardmatch) { in Curl_pretransfer()
654 if(wc->state < CURLWC_INIT) { in Curl_pretransfer()
674 Curl_safefree(data->state.aptr.uagent); in Curl_pretransfer()
675 data->state.aptr.uagent = in Curl_pretransfer()
677 if(!data->state.aptr.uagent) in Curl_pretransfer()
683 data->state.creds_from = CREDS_OPTION; in Curl_pretransfer()
685 result = Curl_setstropt(&data->state.aptr.user, in Curl_pretransfer()
688 result = Curl_setstropt(&data->state.aptr.passwd, in Curl_pretransfer()
692 result = Curl_setstropt(&data->state.aptr.proxyuser, in Curl_pretransfer()
695 result = Curl_setstropt(&data->state.aptr.proxypasswd, in Curl_pretransfer()
716 if(data->state.upload && in Curl_retry_request()
735 else if(data->state.refused_stream && in Curl_retry_request()
743 data->state.refused_stream = FALSE; /* clear again */ in Curl_retry_request()
748 if(data->state.retrycount++ >= CONN_MAX_RETRIES) { in Curl_retry_request()
751 data->state.retrycount = 0; in Curl_retry_request()
755 data->state.retrycount); in Curl_retry_request()
756 *url = strdup(data->state.url); in Curl_retry_request()