Lines Matching refs:result

78   CURLcode result;
84 result = Curl_read(data, conn->sockfd, (char *)buf, buflen, &nread);
85 if(result == CURLE_AGAIN) {
97 else if(result) {
110 CURLcode result;
114 result = Curl_write(data, conn->sockfd, (void *)buf, buflen, &nwrote);
115 if(!result && !nwrote)
116 result = CURLE_AGAIN;
117 if(result == CURLE_AGAIN) {
129 else if(result) {
146 CURLcode result;
171 result = Curl_http_header(data, data->conn, headp);
172 if(result) {
173 data->state.hresult = result;
184 result = Curl_client_write(data, writetype, headp, len);
185 if(result) {
190 result = Curl_bump_headersize(data, len, FALSE);
191 if(result) {
192 data->state.hresult = result;
204 CURLcode result = CURLE_OK;
236 result = CURLE_OK;
239 result = Curl_http_firstwrite(data, data->conn, &done);
240 if(result || done) {
242 data->state.hresult = result;
246 result = Curl_client_write(data, CLIENTWRITE_BODY, buf, len);
248 if(result) {
249 data->state.hresult = result;
266 CURLcode result;
287 result = Curl_http_statusline(data, conn);
288 if(result)
289 return result;
294 result = Curl_dyn_addf(&data->state.headerb, "HTTP/%s %03d %.*s\r\n",
298 if(result)
299 return result;
307 result = Curl_client_write(data, writetype,
309 if(result)
310 return result;
312 result = Curl_bump_headersize(data, len, FALSE);
313 return result;
322 CURLcode result = Curl_http_size(data);
323 if(!result) {
324 result = hyper_each_header(data, NULL, 0, NULL, 0) ?
326 if(result)
332 return result;
351 CURLcode result = CURLE_OK;
396 result = data->state.hresult;
406 result = CURLE_OK;
410 result = CURLE_GOT_NOTHING;
412 result = CURLE_RECV_ERROR;
418 result = CURLE_UNSUPPORTED_PROTOCOL; /* maybe */
421 result = CURLE_RECV_ERROR;
439 result = Curl_http_firstwrite(data, data->conn, &stilldone);
472 result = status_line(data, conn,
474 if(result)
480 result = CURLE_RECV_ERROR;
487 result = data->state.hresult;
491 result = empty_header(data);
492 if(result)
501 result = Curl_ws_accept(data, NULL, 0);
502 if(result)
503 return result;
507 result = CURLE_HTTP_RETURNED_ERROR;
516 result = Curl_http_auth_act(data);
517 if(result)
523 result = CURLE_RECV_ERROR;
529 result = CURLE_OUT_OF_MEMORY;
535 result = CURLE_OUT_OF_MEMORY;
544 return result;
635 CURLcode result;
640 result = Curl_http_target(data, conn, &r);
641 if(result)
642 return result;
647 result = CURLE_OUT_OF_MEMORY;
650 result = debug_request(data, method, Curl_dyn_ptr(&r));
654 return result;
699 CURLcode result;
716 result = CURLE_OK;
719 result = Curl_fillreadbuffer(data, data->set.upload_buffer_size,
722 if(result) {
723 data->state.hresult = result;
766 CURLcode result = CURLE_OK;
773 result = Curl_http_bodysend(data, conn, &req, httpreq);
775 if(!result)
776 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&req));
785 result = Curl_get_upload_buffer(data);
786 if(result) {
788 return result;
796 result = CURLE_OUT_OF_MEMORY;
800 return result;
808 CURLcode result;
811 result = Curl_http_cookies(data, conn, &req);
812 if(!result)
813 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&req));
815 return result;
823 CURLcode result = CURLE_OK;
836 result = status_line(data, data->conn,
838 if(!result) {
842 result = CURLE_RECV_ERROR;
845 data->state.hresult = result;
847 if(!result) {
853 result = CURLE_OUT_OF_MEMORY;
877 CURLcode result;
893 result = Curl_http_host(data, conn);
894 if(result)
895 return result;
909 result = Curl_http_output_auth(data, conn, method, httpreq,
912 if(result)
913 return result;
916 result = Curl_http_resume(data, conn, httpreq);
917 if(result)
918 return result;
920 result = Curl_http_range(data, httpreq);
921 if(result)
922 return result;
924 result = Curl_http_useragent(data);
925 if(result)
926 return result;
931 result = CURLE_OUT_OF_MEMORY;
944 result = CURLE_OUT_OF_MEMORY;
952 result = CURLE_OUT_OF_MEMORY;
957 result = CURLE_UNSUPPORTED_PROTOCOL;
970 result = CURLE_OUT_OF_MEMORY;
978 result = CURLE_OUT_OF_MEMORY;
986 result = CURLE_OUT_OF_MEMORY;
996 result = CURLE_OUT_OF_MEMORY;
1004 result = CURLE_OUT_OF_MEMORY;
1016 result = CURLE_OUT_OF_MEMORY;
1020 result = request_target(data, conn, method, req);
1021 if(result)
1027 result = CURLE_OUT_OF_MEMORY;
1033 result = CURLE_OUT_OF_MEMORY;
1037 result = Curl_http_body(data, conn, httpreq, &te);
1038 if(result)
1042 result = Curl_hyper_header(data, headers, data->state.aptr.host);
1043 if(result)
1048 result = Curl_hyper_header(data, headers, data->state.aptr.proxyuserpwd);
1049 if(result)
1054 result = Curl_hyper_header(data, headers, data->state.aptr.userpwd);
1055 if(result)
1060 result = Curl_hyper_header(data, headers, data->state.aptr.rangeline);
1061 if(result)
1068 result = Curl_hyper_header(data, headers, data->state.aptr.uagent);
1069 if(result)
1076 result = Curl_hyper_header(data, headers, p_accept);
1077 if(result)
1081 result = Curl_hyper_header(data, headers, te);
1082 if(result)
1091 result = CURLE_OUT_OF_MEMORY;
1094 result = Curl_hyper_header(data, headers, altused);
1095 if(result)
1105 result = Curl_hyper_header(data, headers, "Proxy-Connection: Keep-Alive");
1106 if(result)
1115 result = CURLE_OUT_OF_MEMORY;
1117 result = Curl_hyper_header(data, headers, data->state.aptr.ref);
1118 if(result)
1124 result = Curl_transferencode(data);
1125 if(result)
1127 result = Curl_hyper_header(data, headers, data->state.aptr.te);
1128 if(result)
1138 result = CURLE_OUT_OF_MEMORY;
1140 result = Curl_hyper_header(data, headers,
1142 if(result)
1148 result = cookies(data, conn, headers);
1149 if(result)
1152 if(!result && conn->handler->protocol&(CURLPROTO_WS|CURLPROTO_WSS))
1153 result = Curl_ws_request(data, headers);
1155 result = Curl_add_timecondition(data, headers);
1156 if(result)
1159 result = Curl_add_custom_headers(data, FALSE, headers);
1160 if(result)
1163 result = bodysend(data, conn, headers, req, httpreq);
1164 if(result)
1178 result = CURLE_OUT_OF_MEMORY;
1185 result = CURLE_OUT_OF_MEMORY;
1210 DEBUGASSERT(result);
1226 return result;