Lines Matching refs:header_line
556 static int sapi_extract_response_code(const char *header_line) in sapi_extract_response_code() argument
561 for (ptr = header_line; *ptr; ptr++) { in sapi_extract_response_code()
619 SAPI_API int sapi_add_header_ex(char *header_line, size_t header_line_len, zend_bool duplicate, zen… in sapi_add_header_ex() argument
624 ctr.line = header_line; in sapi_add_header_ex()
631 efree(header_line); in sapi_add_header_ex()
661 char *header_line; in sapi_header_op() local
691 header_line = p->line; in sapi_header_op()
708 header_line = estrndup(header_line, header_line_len); in sapi_header_op()
711 if (header_line_len && isspace(header_line[header_line_len-1])) { in sapi_header_op()
714 } while(header_line_len && isspace(header_line[header_line_len-1])); in sapi_header_op()
715 header_line[header_line_len]='\0'; in sapi_header_op()
719 if (strchr(header_line, ':')) { in sapi_header_op()
720 efree(header_line); in sapi_header_op()
725 sapi_header.header = header_line; in sapi_header_op()
729 sapi_remove_header(&SG(sapi_headers).headers, header_line, header_line_len); in sapi_header_op()
730 efree(header_line); in sapi_header_op()
737 if (header_line[i] == '\n' || header_line[i] == '\r') { in sapi_header_op()
738 efree(header_line); in sapi_header_op()
743 if (header_line[i] == '\0') { in sapi_header_op()
744 efree(header_line); in sapi_header_op()
751 sapi_header.header = header_line; in sapi_header_op()
756 && !strncasecmp(header_line, "HTTP/", 5)) { in sapi_header_op()
758 sapi_update_response_code(sapi_extract_response_code(header_line)); in sapi_header_op()
763 SG(sapi_headers).http_status_line = header_line; in sapi_header_op()
766 colon_offset = strchr(header_line, ':'); in sapi_header_op()
769 if (!strcasecmp(header_line, "Content-Type")) { in sapi_header_op()
771 size_t len = header_line_len - (ptr - header_line), newlen; in sapi_header_op()
797 efree(header_line); in sapi_header_op()
801 } else if (!strcasecmp(header_line, "Content-Length")) { in sapi_header_op()
811 } else if (!strcasecmp(header_line, "Location")) { in sapi_header_op()
827 } else if (!strcasecmp(header_line, "WWW-Authenticate")) { /* HTTP Authentication */ in sapi_header_op()
830 if (sapi_header.header==header_line) { in sapi_header_op()