Lines Matching refs:reqbuf
95 char reqbuf[REQBUFSIZ]; /* buffer area for the incoming request */ member
133 static void storerequest(char *reqbuf, size_t totalsize);
453 char *line=&req->reqbuf[req->checkindex]; in ProcessRequest()
546 if(sscanf(req->reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d", in ProcessRequest()
733 if(strstr(req->reqbuf, "\r\n0\r\n\r\n")) in ProcessRequest()
746 if(!req->auth && strstr(req->reqbuf, "Authorization:")) { in ProcessRequest()
752 if(!req->digest && strstr(req->reqbuf, "Authorization: Digest")) { in ProcessRequest()
761 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAD")) { in ProcessRequest()
771 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAB")) { in ProcessRequest()
778 strstr(req->reqbuf, "Authorization: Basic")) { in ProcessRequest()
785 if(strstr(req->reqbuf, "Connection: close")) in ProcessRequest()
792 req->reqbuf + req->offset > end + strlen(end_of_headers) && in ProcessRequest()
794 (!strncmp(req->reqbuf, "GET", strlen("GET")) || in ProcessRequest()
795 !strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) { in ProcessRequest()
798 req->checkindex = (end - req->reqbuf) + strlen(end_of_headers); in ProcessRequest()
806 line = &req->reqbuf[req->checkindex]; in ProcessRequest()
823 if(req->upgrade && strstr(req->reqbuf, "Upgrade:")) { in ProcessRequest()
830 if(req->cl <= req->offset - (end - req->reqbuf) - strlen(end_of_headers)) in ProcessRequest()
840 static void storerequest(char *reqbuf, size_t totalsize) in storerequest() argument
849 if(reqbuf == NULL) in storerequest()
866 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
929 char *reqbuf = req->reqbuf; in get_request() local
937 pipereq = reqbuf + req->checkindex; in get_request()
953 memmove(reqbuf, pipereq, pipereq_length); in get_request()
962 got = sread(sock, reqbuf + req->offset, req->cl); in get_request()
964 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
983 reqbuf[req->offset] = '\0'; in get_request()
984 storerequest(reqbuf, req->offset); in get_request()
991 reqbuf[req->offset] = '\0'; in get_request()
1006 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
1012 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
1016 reqbuf[req->offset] = '\0'; in get_request()
1020 storerequest(reqbuf, req->pipelining ? req->checkindex : req->offset); in get_request()