Lines Matching refs:req_buf
137 free(h->req_buf);
152 line = h->req_buf;
153 /* TODO : check if req_buf, contentoff are ok */
154 while(line < (h->req_buf + h->req_contentoff))
424 while( (line < (h->req_buf + h->req_buflen)) &&
809 p = h->req_buf;
860 chunk = endbuf = chunkstart = h->req_buf + h->req_contentoff;
878 h->req_buflen = endbuf - h->req_buf;
882 DPRINTF(E_DEBUG, L_HTTP, "HTTP REQUEST: %.*s\n", h->req_buflen, h->req_buf);
1072 h->req_buf = (char *)realloc(h->req_buf, new_req_buflen);
1073 if (!h->req_buf)
1079 memcpy(h->req_buf + h->req_buflen, buf, n);
1081 h->req_buf[h->req_buflen] = '\0';
1083 endheaders = strstr(h->req_buf, "\r\n\r\n");
1086 h->req_contentoff = endheaders - h->req_buf + 4;
1109 h->req_buf = (char *)realloc(h->req_buf, n + h->req_buflen);
1110 if (!h->req_buf)
1116 memcpy(h->req_buf + h->req_buflen, buf, n);