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