Lines Matching refs:state

185   if(data->state.referer_alloc) {  in Curl_freeset()
186 Curl_safefree(data->state.referer); in Curl_freeset()
187 data->state.referer_alloc = FALSE; in Curl_freeset()
189 data->state.referer = NULL; in Curl_freeset()
190 if(data->state.url_alloc) { in Curl_freeset()
191 Curl_safefree(data->state.url); in Curl_freeset()
192 data->state.url_alloc = FALSE; in Curl_freeset()
194 data->state.url = NULL; in Curl_freeset()
199 curl_slist_free_all(data->state.cookielist); in Curl_freeset()
200 data->state.cookielist = NULL; in Curl_freeset()
207 struct urlpieces *up = &data->state.up; in up_free()
216 curl_url_cleanup(data->state.uh); in up_free()
217 data->state.uh = NULL; in up_free()
240 if(!data->state.internal) { in Curl_close()
260 if(data->state.rangestringalloc) in Curl_close()
261 free(data->state.range); in Curl_close()
268 Curl_safefree(data->state.first_host); in Curl_close()
271 if(data->state.referer_alloc) { in Curl_close()
272 Curl_safefree(data->state.referer); in Curl_close()
273 data->state.referer_alloc = FALSE; in Curl_close()
275 data->state.referer = NULL; in Curl_close()
278 Curl_dyn_free(&data->state.headerb); in Curl_close()
288 curl_slist_free_all(data->state.hstslist); /* clean up list */ in Curl_close()
298 Curl_resolver_cleanup(data->state.async.resolver); in Curl_close()
310 Curl_safefree(data->state.aptr.proxyuserpwd); in Curl_close()
312 Curl_safefree(data->state.aptr.uagent); in Curl_close()
313 Curl_safefree(data->state.aptr.userpwd); in Curl_close()
314 Curl_safefree(data->state.aptr.accept_encoding); in Curl_close()
315 Curl_safefree(data->state.aptr.te); in Curl_close()
316 Curl_safefree(data->state.aptr.rangeline); in Curl_close()
317 Curl_safefree(data->state.aptr.ref); in Curl_close()
318 Curl_safefree(data->state.aptr.host); in Curl_close()
320 Curl_safefree(data->state.aptr.cookiehost); in Curl_close()
323 Curl_safefree(data->state.aptr.rtsp_transport); in Curl_close()
325 Curl_safefree(data->state.aptr.user); in Curl_close()
326 Curl_safefree(data->state.aptr.passwd); in Curl_close()
328 Curl_safefree(data->state.aptr.proxyuser); in Curl_close()
329 Curl_safefree(data->state.aptr.proxypasswd); in Curl_close()
333 Curl_mime_cleanpart(data->state.formp); in Curl_close()
334 Curl_safefree(data->state.formp); in Curl_close()
520 result = Curl_resolver_init(data, &data->state.async.resolver); in Curl_open()
530 Curl_dyn_init(&data->state.headerb, CURL_MAX_HTTP_HEADER); in Curl_open()
534 data->state.lastconnect_id = -1; in Curl_open()
535 data->state.recent_conn_id = -1; in Curl_open()
544 data->state.current_speed = -1; /* init to negative == impossible */ in Curl_open()
546 Curl_llist_init(&data->state.httphdrs, NULL); in Curl_open()
551 Curl_resolver_cleanup(data->state.async.resolver); in Curl_open()
552 Curl_dyn_free(&data->state.headerb); in Curl_open()
665 (data->state.httpwant >= CURL_HTTP_VERSION_2)) in Curl_xfer_may_multiplex()
767 unsigned int state; in Curl_conn_seems_dead() local
773 state = conn->handler->connection_check(data, conn, CONNCHECK_ISDEAD); in Curl_conn_seems_dead()
774 dead = (state & CONNRESULT_DEAD); in Curl_conn_seems_dead()
1003 (data->state.httpwant == CURL_HTTP_VERSION_2_0) && in url_match_conn()
1038 (data->state.httpwant != CURL_HTTP_VERSION_2TLS)) { in url_match_conn()
1040 (data->state.httpwant < CURL_HTTP_VERSION_2_0)) { in url_match_conn()
1046 (data->state.httpwant < CURL_HTTP_VERSION_3)) { in url_match_conn()
1252 match.want_ntlm_http = ((data->state.authhost.want & CURLAUTH_NTLM) && in ConnectionExists()
1257 (data->state.authproxy.want & CURLAUTH_NTLM) && in ConnectionExists()
1359 (data->state.aptr.proxyuser) ? TRUE : FALSE; in allocate_conn()
1635 if(data->state.this_is_a_follow && in findprotocol()
1652 data->state.this_is_a_follow ? " (in redirect)":""); in findprotocol()
1736 bool use_set_uh = (data->set.uh && !data->state.this_is_a_follow);
1742 uh = data->state.uh = curl_url_dup(data->set.uh);
1745 uh = data->state.uh = curl_url();
1752 !Curl_is_absolute_url(data->state.url, NULL, 0, TRUE)) {
1754 data->state.url);
1757 if(data->state.url_alloc)
1758 free(data->state.url);
1759 data->state.url = url;
1760 data->state.url_alloc = TRUE;
1765 uc = curl_url_set(uh, CURLUPART_URL, data->state.url, (unsigned int)
1780 if(data->state.url_alloc)
1781 free(data->state.url);
1782 data->state.url = newurl;
1783 data->state.url_alloc = TRUE;
1786 uc = curl_url_get(uh, CURLUPART_SCHEME, &data->state.up.scheme, 0);
1790 uc = curl_url_get(uh, CURLUPART_HOST, &data->state.up.hostname, 0);
1792 if(!strcasecompare("file", data->state.up.scheme))
1795 else if(strlen(data->state.up.hostname) > MAX_URL_LEN) {
1799 hostname = data->state.up.hostname;
1829 if(data->hsts && strcasecompare("http", data->state.up.scheme)) {
1833 Curl_safefree(data->state.up.scheme);
1837 if(data->state.url_alloc)
1838 Curl_safefree(data->state.url);
1843 uc = curl_url_get(uh, CURLUPART_SCHEME, &data->state.up.scheme, 0);
1848 data->state.url = url;
1849 data->state.url_alloc = TRUE;
1851 data->state.url);
1856 result = findprotocol(data, conn, data->state.up.scheme);
1865 uc = curl_url_get(uh, CURLUPART_PASSWORD, &data->state.up.password, 0);
1868 result = Curl_urldecode(data->state.up.password, 0, &decoded, NULL,
1874 result = Curl_setstropt(&data->state.aptr.passwd, decoded);
1886 uc = curl_url_get(uh, CURLUPART_USER, &data->state.up.user, 0);
1889 result = Curl_urldecode(data->state.up.user, 0, &decoded, NULL,
1895 result = Curl_setstropt(&data->state.aptr.user, decoded);
1899 else if(data->state.aptr.passwd) {
1901 result = Curl_setstropt(&data->state.aptr.user, "");
1907 uc = curl_url_get(uh, CURLUPART_OPTIONS, &data->state.up.options,
1910 conn->options = strdup(data->state.up.options);
1917 uc = curl_url_get(uh, CURLUPART_PATH, &data->state.up.path,
1922 uc = curl_url_get(uh, CURLUPART_PORT, &data->state.up.port,
1925 if(!strcasecompare("file", data->state.up.scheme))
1929 unsigned long port = strtoul(data->state.up.port, NULL, 10);
1931 (data->set.use_port && data->state.allow_port) ?
1935 (void)curl_url_get(uh, CURLUPART_QUERY, &data->state.up.query, 0);
1953 struct UrlState *s = &data->state;
2238 result = Curl_setstropt(&data->state.aptr.proxyuser, proxyuser);
2251 result = Curl_setstropt(&data->state.aptr.proxypasswd, proxypasswd);
2347 const char *proxyuser = data->state.aptr.proxyuser ?
2348 data->state.aptr.proxyuser : "";
2349 const char *proxypasswd = data->state.aptr.proxypasswd ?
2350 data->state.aptr.proxypasswd : "";
2643 if(data->set.use_port && data->state.allow_port) {
2649 uc = curl_url_set(data->state.uh, CURLUPART_PORT, portbuf, 0);
2686 if(data->state.aptr.user) {
2688 userp = &data->state.aptr.user;
2729 if(data->state.aptr.user != *userp) {
2731 result = Curl_setstropt(&data->state.aptr.user, *userp);
2736 if(data->state.aptr.user) {
2737 uc = curl_url_set(data->state.uh, CURLUPART_USER, data->state.aptr.user,
2742 *userp = strdup(data->state.aptr.user);
2748 CURLcode result = Curl_setstropt(&data->state.aptr.passwd, *passwdp);
2752 if(data->state.aptr.passwd) {
2753 uc = curl_url_set(data->state.uh, CURLUPART_PASSWORD,
2754 data->state.aptr.passwd, CURLU_URLENCODE);
2758 *passwdp = strdup(data->state.aptr.passwd);
2778 if((conn->handler->flags & PROTOPT_NEEDSPWD) && !data->state.aptr.user)
3053 switch(data->state.httpwant) {
3351 if(!data->state.url) {
3568 if((data->set.reuse_fresh && !data->state.followlocation) ||
3663 if((data->state.authhost.picked & CURLAUTH_NTLM) &&
3664 data->state.authhost.done) {
3666 data->state.authhost.picked = CURLAUTH_NONE;
3667 data->state.authhost.done = FALSE;
3670 if((data->state.authproxy.picked & CURLAUTH_NTLM) &&
3671 data->state.authproxy.done) {
3673 data->state.authproxy.picked = CURLAUTH_NONE;
3674 data->state.authproxy.done = FALSE;
3818 if(data->state.wildcardmatch &&
3820 data->state.wildcardmatch = FALSE;
3823 data->state.done = FALSE; /* *_done() is not called yet */
3827 data->state.httpreq = HTTPREQ_HEAD;
3932 memset(&data->state.priority, 0, sizeof(data->state.priority));