Lines Matching refs:header_line
566 static int sapi_extract_response_code(const char *header_line) in sapi_extract_response_code() argument
571 for (ptr = header_line; *ptr; ptr++) { in sapi_extract_response_code()
629 SAPI_API int sapi_add_header_ex(char *header_line, uint header_line_len, zend_bool duplicate, zend_… in sapi_add_header_ex() argument
634 ctr.line = header_line; in sapi_add_header_ex()
641 efree(header_line); in sapi_add_header_ex()
671 char *header_line; in sapi_header_op() local
701 header_line = p->line; in sapi_header_op()
718 header_line = estrndup(header_line, header_line_len); in sapi_header_op()
721 if (header_line_len && isspace(header_line[header_line_len-1])) { in sapi_header_op()
724 } while(header_line_len && isspace(header_line[header_line_len-1])); in sapi_header_op()
725 header_line[header_line_len]='\0'; in sapi_header_op()
729 if (strchr(header_line, ':')) { in sapi_header_op()
730 efree(header_line); in sapi_header_op()
735 sapi_header.header = header_line; in sapi_header_op()
739 sapi_remove_header(&SG(sapi_headers).headers, header_line, header_line_len); in sapi_header_op()
740 efree(header_line); in sapi_header_op()
747 if (header_line[i] == '\n' || header_line[i] == '\r') { in sapi_header_op()
748 efree(header_line); in sapi_header_op()
753 if (header_line[i] == '\0') { in sapi_header_op()
754 efree(header_line); in sapi_header_op()
761 sapi_header.header = header_line; in sapi_header_op()
766 && !strncasecmp(header_line, "HTTP/", 5)) { in sapi_header_op()
768 sapi_update_response_code(sapi_extract_response_code(header_line) TSRMLS_CC); in sapi_header_op()
773 SG(sapi_headers).http_status_line = header_line; in sapi_header_op()
776 colon_offset = strchr(header_line, ':'); in sapi_header_op()
779 if (!STRCASECMP(header_line, "Content-Type")) { in sapi_header_op()
781 size_t len = header_line_len - (ptr - header_line), newlen; in sapi_header_op()
805 efree(header_line); in sapi_header_op()
809 } else if (!STRCASECMP(header_line, "Content-Length")) { in sapi_header_op()
817 } else if (!STRCASECMP(header_line, "Location")) { in sapi_header_op()
833 } else if (!STRCASECMP(header_line, "WWW-Authenticate")) { /* HTTP Authentication */ in sapi_header_op()
836 if (sapi_header.header==header_line) { in sapi_header_op()