Lines Matching refs:reqbuf
95 char reqbuf[REQBUFSIZ]; /* buffer area for the incoming request */ member
122 static void storerequest(char *reqbuf, size_t totalsize);
205 char *line = &req->reqbuf[req->checkindex]; in ProcessRequest()
408 if(sscanf(req->reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d", in ProcessRequest()
500 if(strstr(req->reqbuf, "\r\n0\r\n\r\n")) in ProcessRequest()
513 if(!req->auth && strstr(req->reqbuf, "Authorization:")) { in ProcessRequest()
519 if(!req->digest && strstr(req->reqbuf, "Authorization: Digest")) { in ProcessRequest()
528 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAD")) { in ProcessRequest()
538 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAB")) { in ProcessRequest()
545 strstr(req->reqbuf, "Authorization: Basic")) { in ProcessRequest()
552 if(strstr(req->reqbuf, "Connection: close")) in ProcessRequest()
558 req->reqbuf + req->offset > end + strlen(END_OF_HEADERS) && in ProcessRequest()
559 (!strncmp(req->reqbuf, "GET", strlen("GET")) || in ProcessRequest()
560 !strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) { in ProcessRequest()
563 req->checkindex = (end - req->reqbuf) + strlen(END_OF_HEADERS); in ProcessRequest()
571 line = &req->reqbuf[req->checkindex]; in ProcessRequest()
587 if(req->cl <= req->offset - (end - req->reqbuf) - strlen(END_OF_HEADERS)) in ProcessRequest()
597 static void storerequest(char *reqbuf, size_t totalsize) in storerequest() argument
608 if(!reqbuf) in storerequest()
625 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
658 char *reqbuf = req->reqbuf; in get_request() local
665 pipereq = reqbuf + req->checkindex; in get_request()
694 memmove(reqbuf, pipereq, pipereq_length); in get_request()
703 got = sread(sock, reqbuf + req->offset, req->cl); in get_request()
705 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
720 reqbuf[req->offset] = '\0'; in get_request()
721 storerequest(reqbuf, req->offset); in get_request()
728 reqbuf[req->offset] = '\0'; in get_request()
743 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
749 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
753 reqbuf[req->offset] = '\0'; in get_request()
756 storerequest(reqbuf, req->pipelining ? req->checkindex : req->offset); in get_request()