Lines Matching refs:req
155 if(!data->req.bytecount)
182 if(data->req.httpcode/100 == 1)
203 struct SingleRequest *k = &data->req;
211 (((data->req.httpcode == 401) &&
213 ((data->req.httpcode == 407) &&
217 Curl_safefree(data->req.newurl);
222 if(data->req.httpcode < 400) {
233 if(data->state.hconnect && (data->req.httpcode/100 != 2) &&
275 data->req.httpcode = http_status;
352 struct SingleRequest *k = &data->req;
409 if(!data->req.bytecount)
417 data->req.headerbytecount++;
468 data->req.newurl = strdup(data->state.url);
551 char *req = aprintf("%s %s HTTP/1.1\r\n", method, path);
552 if(!req)
554 Curl_debug(data, CURLINFO_HEADER_OUT, req, strlen(req));
555 free(req);
633 hyper_request *req)
644 if(hyper_request_set_uri(req, (uint8_t *)Curl_dyn_uptr(&r),
662 if(data->req.exp100 > EXP100_SEND_DATA) {
663 if(data->req.exp100 == EXP100_FAILED)
672 if(data->req.upload_done)
677 (size_t)data->req.p.http->postsize);
686 data->req.writebytecount += (size_t)data->req.p.http->postsize;
687 Curl_pgrsSetUploadCounter(data, data->req.writebytecount);
688 data->req.upload_done = TRUE;
702 if(data->req.exp100 > EXP100_SEND_DATA) {
703 if(data->req.exp100 == EXP100_FAILED)
713 if(data->req.upload_chunky && conn->bits.authneg) {
715 data->req.upload_chunky = FALSE;
727 if((data->req.keepon & KEEP_SEND_PAUSE) != KEEP_SEND_PAUSE)
748 data->req.writebytecount += fillcount;
749 Curl_pgrsSetUploadCounter(data, data->req.writebytecount);
765 struct HTTP *http = data->req.p.http;
767 struct dynbuf req;
772 Curl_dyn_init(&req, DYN_HTTP_REQUEST);
773 result = Curl_http_bodysend(data, conn, &req, httpreq);
776 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&req));
778 Curl_dyn_free(&req);
791 data->req.upload_fromhere = data->state.ulbuf;
807 struct dynbuf req;
809 Curl_dyn_init(&req, DYN_HTTP_REQUEST);
811 result = Curl_http_cookies(data, conn, &req);
813 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&req));
814 Curl_dyn_free(&req);
874 hyper_request *req = NULL;
899 DEBUGASSERT(data->req.bytecount == 0);
993 req = hyper_request_new();
994 if(!req) {
1001 if(HYPERE_OK != hyper_request_set_version(req,
1014 if(hyper_request_set_method(req, (uint8_t *)method, strlen(method))) {
1020 result = request_target(data, conn, method, req);
1024 headers = hyper_request_headers(req);
1031 rc = hyper_request_on_informational(req, http1xx_cb, data);
1163 result = bodysend(data, conn, headers, req, httpreq);
1169 if(data->req.upload_chunky && conn->bits.authneg) {
1170 data->req.upload_chunky = TRUE;
1173 data->req.upload_chunky = FALSE;
1175 sendtask = hyper_clientconn_send(client, req);
1181 req = NULL;
1202 data->req.start100 = Curl_now();
1223 if(req)
1224 hyper_request_free(req);