Lines Matching defs:line
2997 /** return true if http header has been read (one line complete) */
3010 /** return character string into buffer for header line, moves buffer
3011 * past that line and puts zero terminator into linefeed-newline */
3046 char* line = http_header_line(c->buffer);
3047 if(!line) return 1;
3048 verbose(VERB_ALGO, "http header: %s", line);
3049 if(strncasecmp(line, "HTTP/1.1 ", 9) == 0) {
3051 if(line[9] != '2') {
3052 verbose(VERB_ALGO, "http bad status %s", line+9);
3055 } else if(strncasecmp(line, "Content-Length: ", 16) == 0) {
3057 c->tcp_byte_count = (size_t)atoi(line+16);
3058 } else if(strncasecmp(line, "Transfer-Encoding: chunked", 19+7) == 0) {
3061 } else if(line[0] == 0) {
3079 * header line, 2=done with chunked transfer*/
3083 char* line = http_header_line(c->buffer);
3084 if(!line) return 1;
3086 verbose(VERB_ALGO, "http chunk trailer: %s", line);
3088 if(line[0] == 0 && c->tcp_byte_count == 0) {
3098 if(line[0] == 0) {
3109 verbose(VERB_ALGO, "http chunk header: %s", line);
3111 /* read chunked start line */
3113 c->tcp_byte_count = (size_t)strtol(line, &end, 16);
3114 if(end == line)
3218 * an empty line */