Lines Matching refs:content_type
202 uint content_type_length = strlen(SG(request_info).content_type); in sapi_read_post_data()
203 char *content_type = estrndup(SG(request_info).content_type, content_type_length); in sapi_read_post_data() local
213 for (p=content_type; p<content_type+content_type_length; p++) { in sapi_read_post_data()
218 content_type_length = p-content_type; in sapi_read_post_data()
229 if (zend_hash_find(&SG(known_post_content_types), content_type, in sapi_read_post_data()
240 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type); in sapi_read_post_data()
248 SG(request_info).content_type_dup = content_type; in sapi_read_post_data()
297 char *mimetype, *charset, *content_type; in get_default_content_type() local
319 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
320 p = content_type + prefix_len; in get_default_content_type()
328 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
329 memcpy(content_type + prefix_len, mimetype, mimetype_len + 1); in get_default_content_type()
331 return content_type; in get_default_content_type()
463 if (SG(request_info).content_type && !strcmp(SG(request_info).request_method, "POST")) { in sapi_activate()
931 while (p->content_type) { in sapi_register_post_entries()
947 post_entry->content_type, post_entry->content_type_len+1, in sapi_register_post_entry()
956 zend_hash_del(&SG(known_post_content_types), post_entry->content_type, in sapi_unregister_post_entry()