Lines Matching refs:line
2240 /** return true if http header has been read (one line complete) */
2253 /** return character string into buffer for header line, moves buffer
2254 * past that line and puts zero terminator into linefeed-newline */
2289 char* line = http_header_line(c->buffer);
2290 if(!line) return 1;
2291 verbose(VERB_ALGO, "http header: %s", line);
2292 if(strncasecmp(line, "HTTP/1.1 ", 9) == 0) {
2294 if(line[9] != '2') {
2295 verbose(VERB_ALGO, "http bad status %s", line+9);
2298 } else if(strncasecmp(line, "Content-Length: ", 16) == 0) {
2300 c->tcp_byte_count = (size_t)atoi(line+16);
2301 } else if(strncasecmp(line, "Transfer-Encoding: chunked", 19+7) == 0) {
2304 } else if(line[0] == 0) {
2322 * header line, 2=done with chunked transfer*/
2326 char* line = http_header_line(c->buffer);
2327 if(!line) return 1;
2329 verbose(VERB_ALGO, "http chunk trailer: %s", line);
2331 if(line[0] == 0 && c->tcp_byte_count == 0) {
2341 if(line[0] == 0) {
2352 verbose(VERB_ALGO, "http chunk header: %s", line);
2354 /* read chunked start line */
2356 c->tcp_byte_count = (size_t)strtol(line, &end, 16);
2357 if(end == line)
2461 * an empty line */