• Home
  • Raw
  • Download

Lines Matching refs:reqbuf

98   char reqbuf[REQBUFSIZ]; /* buffer area for the incoming request */  member
138 static void storerequest(const char *reqbuf, size_t totalsize);
474 char *line = &req->reqbuf[req->checkindex]; in ProcessRequest()
567 if(sscanf(req->reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d", in ProcessRequest()
763 if(strstr(req->reqbuf, "\r\n0\r\n\r\n")) { in ProcessRequest()
767 else if(strstr(req->reqbuf, "\r\n0\r\n")) { in ProcessRequest()
768 char *last_crlf_char = strstr(req->reqbuf, "\r\n\r\n"); in ProcessRequest()
775 last_crlf_char > strstr(req->reqbuf, "\r\n0\r\n")) in ProcessRequest()
780 else if(already_recv_zeroed_chunk && strstr(req->reqbuf, "\r\n\r\n")) in ProcessRequest()
792 if(!req->auth && strstr(req->reqbuf, "Authorization:")) { in ProcessRequest()
798 if(strstr(req->reqbuf, "Authorization: Negotiate")) { in ProcessRequest()
811 else if(!req->digest && strstr(req->reqbuf, "Authorization: Digest")) { in ProcessRequest()
820 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAD")) { in ProcessRequest()
830 strstr(req->reqbuf, "Authorization: NTLM TlRMTVNTUAAB")) { in ProcessRequest()
837 strstr(req->reqbuf, "Authorization: Basic")) { in ProcessRequest()
844 if(strstr(req->reqbuf, "Connection: close")) in ProcessRequest()
851 req->reqbuf + req->offset > end + strlen(end_of_headers) && in ProcessRequest()
853 (!strncmp(req->reqbuf, "GET", strlen("GET")) || in ProcessRequest()
854 !strncmp(req->reqbuf, "HEAD", strlen("HEAD")))) { in ProcessRequest()
857 req->checkindex = (end - req->reqbuf) + strlen(end_of_headers); in ProcessRequest()
865 line = &req->reqbuf[req->checkindex]; in ProcessRequest()
882 if(req->upgrade && strstr(req->reqbuf, "Upgrade:")) { in ProcessRequest()
889 if(req->cl <= req->offset - (end - req->reqbuf) - strlen(end_of_headers)) in ProcessRequest()
899 static void storerequest(const char *reqbuf, size_t totalsize) in storerequest() argument
908 if(reqbuf == NULL) in storerequest()
925 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
987 char *reqbuf = req->reqbuf; in get_request() local
995 pipereq = reqbuf + req->checkindex; in get_request()
1011 memmove(reqbuf, pipereq, pipereq_length); in get_request()
1020 got = sread(sock, reqbuf + req->offset, req->cl); in get_request()
1022 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
1041 reqbuf[req->offset] = '\0'; in get_request()
1042 storerequest(reqbuf, req->offset); in get_request()
1049 reqbuf[req->offset] = '\0'; in get_request()
1064 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
1070 reqbuf[REQBUFSIZ-1] = '\0'; in get_request()
1074 reqbuf[req->offset] = '\0'; in get_request()
1078 storerequest(reqbuf, req->pipelining ? req->checkindex : req->offset); in get_request()