• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/lib/

Lines Matching refs:http

12  * are also available at http://curl.haxx.se/docs/copyright.html.
65 #include "http.h"
347 struct HTTP *http = data->req.protop;
351 if(!http)
364 bytessent = http->writebytecount;
384 expectsend = http->postsize;
958 struct HTTP *http = conn->data->req.protop;
961 if(0 == http->postsize)
966 conn->data->req.forbidchunk = (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE;
968 if(http->postsize <= (curl_off_t)fullsize) {
969 memcpy(buffer, http->postdata, (size_t)http->postsize);
970 fullsize = (size_t)http->postsize;
972 if(http->backup.postsize) {
974 http->postdata = http->backup.postdata;
975 http->postsize = http->backup.postsize;
976 conn->fread_func = http->backup.fread_func;
977 conn->fread_in = http->backup.fread_in;
979 http->sending++; /* move one step up */
981 http->backup.postsize=0;
984 http->postsize = 0;
989 memcpy(buffer, http->postdata, fullsize);
990 http->postdata += fullsize;
991 http->postsize -= fullsize;
1029 struct HTTP *http = conn->data->req.protop;
1106 http->writebytecount += bodylen;
1113 if(http) {
1124 http->backup.fread_func = conn->fread_func;
1125 http->backup.fread_in = conn->fread_in;
1126 http->backup.postdata = http->postdata;
1127 http->backup.postsize = http->postsize;
1132 http->postdata = ptr;
1133 http->postsize = (curl_off_t)size;
1135 http->send_buffer = in;
1136 http->sending = HTTPSEND_REQUEST;
1140 http->sending = HTTPSEND_BODY;
1413 struct HTTP *http =data->req.protop;
1423 if(http == NULL)
1426 if(http->send_buffer) {
1427 Curl_send_buffer *buff = http->send_buffer;
1431 http->send_buffer = NULL; /* clear the pointer */
1435 data->req.bytecount = http->readbytecount + http->writebytecount;
1437 Curl_formclean(&http->sendit); /* Now free that whole lot */
1438 if(http->form.fp) {
1440 fclose(http->form.fp);
1441 http->form.fp = NULL;
1445 data->req.bytecount = http->readbytecount + http->writebytecount;
1454 ((http->readbytecount +
1655 struct HTTP *http;
1678 infof(data, "http, we have to use HTTP-draft-09/2\n");
1690 http = data->req.protop;
1702 http->writebytecount = http->readbytecount = 0;
1986 result = Curl_getformdata(data, &http->sendit, data->set.httppost,
1988 &http->postsize);
1993 http->p_accept = Curl_checkheaders(data, "Accept:")?NULL:"Accept: */*\r\n";
2173 http->p_accept?http->p_accept:"",
2272 http->postdata = NULL; /* nothing to post at this point */
2282 if(!http->sendit || conn->bits.authneg) {
2294 Curl_setup_transfer(conn, FIRSTSOCKET, -1, TRUE, &http->readbytecount,
2299 if(Curl_FormInit(&http->form, http->sendit)) {
2309 http->form.fread_func = conn->fread_func;
2313 conn->fread_in = &http->form;
2315 http->sending = HTTPSEND_BODY;
2322 "\r\n", http->postsize);
2337 contentType = Curl_formpostheader((void *)&http->form,
2355 Curl_pgrsSetUploadSize(data, http->postsize);
2365 &http->readbytecount, FIRSTSOCKET,
2366 &http->writebytecount);
2369 Curl_formclean(&http->sendit); /* free that whole lot */
2374 result = Curl_convert_form(data, http->sendit);
2376 Curl_formclean(&http->sendit); /* free that whole lot */
2418 &http->readbytecount, postsize?FIRSTSOCKET:-1,
2419 postsize?&http->writebytecount:NULL);
2525 http->postsize = postsize;
2526 http->postdata = data->set.postfields;
2528 http->sending = HTTPSEND_BODY;
2534 Curl_pgrsSetUploadSize(data, http->postsize);
2564 http->postdata = (char *)&http->postdata;
2565 http->postsize = postsize;
2577 &http->readbytecount, http->postdata?FIRSTSOCKET:-1,
2578 http->postdata?&http->writebytecount:NULL);
2594 Curl_setup_transfer(conn, FIRSTSOCKET, -1, TRUE, &http->readbytecount,
2595 http->postdata?FIRSTSOCKET:-1,
2596 http->postdata?&http->writebytecount:NULL);
2601 if(http->writebytecount) {
2604 Curl_pgrsSetUploadCounter(data, http->writebytecount);
2608 if(http->writebytecount >= postsize) {
2613 http->writebytecount, postsize);