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)) &&
807 p = h->req_buf;
858 chunk = endbuf = chunkstart = h->req_buf + h->req_contentoff;
876 h->req_buflen = endbuf - h->req_buf;
880 DPRINTF(E_DEBUG, L_HTTP, "HTTP REQUEST: %.*s\n", h->req_buflen, h->req_buf);
1068 h->req_buf = (char *)realloc(h->req_buf, new_req_buflen);
1069 if (!h->req_buf)
1075 memcpy(h->req_buf + h->req_buflen, buf, n);
1077 h->req_buf[h->req_buflen] = '\0';
1079 endheaders = strstr(h->req_buf, "\r\n\r\n");
1082 h->req_contentoff = endheaders - h->req_buf + 4;
1105 h->req_buf = (char *)realloc(h->req_buf, n + h->req_buflen);
1106 if (!h->req_buf)
1112 memcpy(h->req_buf + h->req_buflen, buf, n);