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))
358 while( (line < (h->req_buf + h->req_buflen)) &&
651 p = h->req_buf;
687 chunk = endbuf = chunkstart = h->req_buf + h->req_contentoff;
703 h->req_buflen = endbuf - h->req_buf;
707 DPRINTF(E_DEBUG, L_HTTP, "HTTP REQUEST: %.*s\n", h->req_buflen, h->req_buf);
866 h->req_buf = (char *)realloc(h->req_buf, n + h->req_buflen + 1);
867 memcpy(h->req_buf + h->req_buflen, buf, n);
869 h->req_buf[h->req_buflen] = '\0';
871 endheaders = findendheaders(h->req_buf, h->req_buflen);
874 h->req_contentoff = endheaders - h->req_buf + 4;
896 h->req_buf = (char *)realloc(h->req_buf, n + h->req_buflen);
897 memcpy(h->req_buf + h->req_buflen, buf, n);