• Home
  • Raw
  • Download

Lines Matching refs:reqbuf

98   char reqbuf[REQBUFSIZ]; /* buffer area for the incoming request */  member
125 static void storerequest(char *reqbuf, size_t totalsize);
338 char *line = &req->reqbuf[req->checkindex]; in ProcessRequest()
541 if(sscanf(req->reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d", in ProcessRequest()
633 if(strstr(req->reqbuf, "\r\n0\r\n\r\n")) in ProcessRequest()
646 if(!req->auth && strstr(req->reqbuf, "Authorization:")) { in ProcessRequest()
652 if(!req->digest && strstr(req->reqbuf, "Authorization: Digest")) { in ProcessRequest()
661 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAD")) { in ProcessRequest()
671 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAB")) { in ProcessRequest()
678 strstr(req->reqbuf, "Authorization: Basic")) { in ProcessRequest()
685 if(strstr(req->reqbuf, "Connection: close")) in ProcessRequest()
692 req->reqbuf + req->offset > end + strlen(END_OF_HEADERS) && in ProcessRequest()
693 (!strncmp(req->reqbuf, "GET", strlen("GET")) || in ProcessRequest()
694 !strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) { in ProcessRequest()
697 req->checkindex = (end - req->reqbuf) + strlen(END_OF_HEADERS); in ProcessRequest()
705 line = &req->reqbuf[req->checkindex]; in ProcessRequest()
721 if(req->cl <= req->offset - (end - req->reqbuf) - strlen(END_OF_HEADERS)) in ProcessRequest()
731 static void storerequest(char *reqbuf, size_t totalsize) in storerequest() argument
739 if(reqbuf == NULL) in storerequest()
756 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
789 char *reqbuf = req->reqbuf; in get_request() local
796 pipereq = reqbuf + req->checkindex; in get_request()
825 memmove(reqbuf, pipereq, pipereq_length); in get_request()
834 got = sread(sock, reqbuf + req->offset, req->cl); in get_request()
836 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
851 reqbuf[req->offset] = '\0'; in get_request()
852 storerequest(reqbuf, req->offset); in get_request()
859 reqbuf[req->offset] = '\0'; in get_request()
874 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
880 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
884 reqbuf[req->offset] = '\0'; in get_request()
887 storerequest(reqbuf, req->pipelining ? req->checkindex : req->offset); in get_request()