Lines Matching refs:req_buf
83 if(h->req_buf)
84 free(h->req_buf);
131 line = h->req_buf;
132 /* TODO : check if req_buf, contentoff are ok */
133 while(line < (h->req_buf + h->req_contentoff))
357 while( (line < (h->req_buf + h->req_buflen)) &&
650 p = h->req_buf;
686 chunk = endbuf = chunkstart = h->req_buf + h->req_contentoff;
702 h->req_buflen = endbuf - h->req_buf;
706 DPRINTF(E_DEBUG, L_HTTP, "HTTP REQUEST: %.*s\n", h->req_buflen, h->req_buf);
865 h->req_buf = (char *)realloc(h->req_buf, n + h->req_buflen + 1);
866 memcpy(h->req_buf + h->req_buflen, buf, n);
868 h->req_buf[h->req_buflen] = '\0';
870 endheaders = findendheaders(h->req_buf, h->req_buflen);
873 h->req_contentoff = endheaders - h->req_buf + 4;
895 h->req_buf = (char *)realloc(h->req_buf, n + h->req_buflen);
896 memcpy(h->req_buf + h->req_buflen, buf, n);