Lines Matching refs:state
157 data->state.hresult = CURLE_TOO_LARGE; in hyper_each_header()
161 Curl_dyn_reset(&data->state.headerb); in hyper_each_header()
163 if(Curl_dyn_addf(&data->state.headerb, "%.*s: %.*s\r\n", in hyper_each_header()
168 if(Curl_dyn_addn(&data->state.headerb, STRCONST("\r\n"))) in hyper_each_header()
171 len = Curl_dyn_len(&data->state.headerb); in hyper_each_header()
172 headp = Curl_dyn_ptr(&data->state.headerb); in hyper_each_header()
176 data->state.hresult = result; in hyper_each_header()
183 if(data->state.hconnect) in hyper_each_header()
189 data->state.hresult = CURLE_ABORTED_BY_CALLBACK; in hyper_each_header()
195 data->state.hresult = result; in hyper_each_header()
218 data->state.authproblem = TRUE; in hyper_body_chunk()
234 if(data->state.hconnect && (data->req.httpcode/100 != 2) && in hyper_body_chunk()
235 data->state.authproxy.done) { in hyper_body_chunk()
243 data->state.hresult = result; in hyper_body_chunk()
250 data->state.hresult = result; in hyper_body_chunk()
279 if(data->state.hconnect) in status_line()
285 data->state.httpwant = CURL_HTTP_VERSION_1_0; in status_line()
292 Curl_dyn_reset(&data->state.headerb); in status_line()
294 result = Curl_dyn_addf(&data->state.headerb, "HTTP/%s %03d %.*s\r\n", in status_line()
300 len = Curl_dyn_len(&data->state.headerb); in status_line()
301 Curl_debug(data, CURLINFO_HEADER_IN, Curl_dyn_ptr(&data->state.headerb), in status_line()
305 if(data->state.hconnect) in status_line()
308 Curl_dyn_ptr(&data->state.headerb), len); in status_line()
383 if(data->state.hresult) { in Curl_hyper_stream()
385 result = data->state.hresult; in Curl_hyper_stream()
455 data->state.disableexpect = TRUE; in Curl_hyper_stream()
456 data->req.newurl = strdup(data->state.url); in Curl_hyper_stream()
474 if(data->state.hresult) { in Curl_hyper_stream()
475 result = data->state.hresult; in Curl_hyper_stream()
713 data->state.hresult = result; in uploadstreamed()
803 data->state.hresult = result; in http1xx_cb()
814 if(data->state.hresult) in http1xx_cb()
871 if(data->state.up.query) { in Curl_http()
872 pq = aprintf("%s?%s", data->state.up.path, data->state.up.query); in Curl_http()
879 (pq ? pq : data->state.up.path), FALSE); in Curl_http()
1003 if(data->state.aptr.host) { in Curl_http()
1004 result = Curl_hyper_header(data, headers, data->state.aptr.host); in Curl_http()
1010 if(data->state.aptr.proxyuserpwd) { in Curl_http()
1011 result = Curl_hyper_header(data, headers, data->state.aptr.proxyuserpwd); in Curl_http()
1017 if(data->state.aptr.userpwd) { in Curl_http()
1018 result = Curl_hyper_header(data, headers, data->state.aptr.userpwd); in Curl_http()
1023 if((data->state.use_range && data->state.aptr.rangeline)) { in Curl_http()
1024 result = Curl_hyper_header(data, headers, data->state.aptr.rangeline); in Curl_http()
1031 data->state.aptr.uagent) { in Curl_http()
1032 result = Curl_hyper_header(data, headers, data->state.aptr.uagent); in Curl_http()
1075 Curl_safefree(data->state.aptr.ref); in Curl_http()
1076 if(data->state.referer && !Curl_checkheaders(data, STRCONST("Referer"))) { in Curl_http()
1077 data->state.aptr.ref = aprintf("Referer: %s\r\n", data->state.referer); in Curl_http()
1078 if(!data->state.aptr.ref) in Curl_http()
1081 result = Curl_hyper_header(data, headers, data->state.aptr.ref); in Curl_http()
1091 result = Curl_hyper_header(data, headers, data->state.aptr.te); in Curl_http()
1098 Curl_safefree(data->state.aptr.accept_encoding); in Curl_http()
1099 data->state.aptr.accept_encoding = in Curl_http()
1101 if(!data->state.aptr.accept_encoding) in Curl_http()
1105 data->state.aptr.accept_encoding); in Curl_http()
1110 Curl_safefree(data->state.aptr.accept_encoding); in Curl_http()
1170 Curl_safefree(data->state.aptr.userpwd); in Curl_http()
1172 Curl_safefree(data->state.aptr.proxyuserpwd); in Curl_http()