Lines Matching refs:content_type
171 uint32_t content_type_length = (uint32_t)strlen(SG(request_info).content_type); in sapi_read_post_data()
172 char *content_type = estrndup(SG(request_info).content_type, content_type_length); in sapi_read_post_data() local
182 for (p=content_type; p<content_type+content_type_length; p++) { in sapi_read_post_data()
187 content_type_length = p-content_type; in sapi_read_post_data()
198 if ((post_entry = zend_hash_str_find_ptr(&SG(known_post_content_types), content_type, in sapi_read_post_data()
209 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type); in sapi_read_post_data()
217 SG(request_info).content_type_dup = content_type; in sapi_read_post_data()
295 char *mimetype, *charset, *content_type; in get_default_content_type() local
317 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
318 p = content_type + prefix_len; in get_default_content_type()
326 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
327 memcpy(content_type + prefix_len, mimetype, mimetype_len + 1); in get_default_content_type()
329 return content_type; in get_default_content_type()
458 && SG(request_info).content_type in sapi_activate()
928 while (p->content_type) { in sapi_register_post_entries()
945 key = zend_string_init(post_entry->content_type, post_entry->content_type_len, 1); in sapi_register_post_entry()
958 zend_hash_str_del(&SG(known_post_content_types), post_entry->content_type, in sapi_unregister_post_entry()