Lines Matching refs:reqbuf
95 char reqbuf[REQBUFSIZ]; /* buffer area for the incoming request */ member
122 static void storerequest(char *reqbuf, size_t totalsize);
329 char *line=&req->reqbuf[req->checkindex]; in ProcessRequest()
534 if(sscanf(req->reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d", in ProcessRequest()
626 if(strstr(req->reqbuf, "\r\n0\r\n\r\n")) in ProcessRequest()
639 if(!req->auth && strstr(req->reqbuf, "Authorization:")) { in ProcessRequest()
645 if(!req->digest && strstr(req->reqbuf, "Authorization: Digest")) { in ProcessRequest()
654 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAD")) { in ProcessRequest()
664 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAB")) { in ProcessRequest()
671 strstr(req->reqbuf, "Authorization: Basic")) { in ProcessRequest()
678 if(strstr(req->reqbuf, "Connection: close")) in ProcessRequest()
685 req->reqbuf + req->offset > end + strlen(END_OF_HEADERS) && in ProcessRequest()
686 (!strncmp(req->reqbuf, "GET", strlen("GET")) || in ProcessRequest()
687 !strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) { in ProcessRequest()
690 req->checkindex = (end - req->reqbuf) + strlen(END_OF_HEADERS); in ProcessRequest()
698 line = &req->reqbuf[req->checkindex]; in ProcessRequest()
714 if(req->cl <= req->offset - (end - req->reqbuf) - strlen(END_OF_HEADERS)) in ProcessRequest()
724 static void storerequest(char *reqbuf, size_t totalsize) in storerequest() argument
732 if(reqbuf == NULL) in storerequest()
749 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
782 char *reqbuf = req->reqbuf; in get_request() local
789 pipereq = reqbuf + req->checkindex; in get_request()
818 memmove(reqbuf, pipereq, pipereq_length); in get_request()
827 got = sread(sock, reqbuf + req->offset, req->cl); in get_request()
829 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
844 reqbuf[req->offset] = '\0'; in get_request()
845 storerequest(reqbuf, req->offset); in get_request()
852 reqbuf[req->offset] = '\0'; in get_request()
867 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
873 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
877 reqbuf[req->offset] = '\0'; in get_request()
880 storerequest(reqbuf, req->pipelining ? req->checkindex : req->offset); in get_request()