Home
last modified time | relevance | path

Searched refs:content_type (Results 1 – 25 of 33) sorted by relevance

12

/PHP-5.5/ext/curl/tests/
H A Dbug46739.phpt2 Bug #46739 (array returned by curl_getinfo should contain content_type key)
16 echo (array_key_exists('content_type', $info)) ? "set" : "not set";
H A Dcurl_basic_016.phpt24 ["content_type"]=>
/PHP-5.5/main/
H A DSAPI.c203 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()
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()
331 return content_type; in get_default_content_type()
931 while (p->content_type) { in sapi_register_post_entries()
[all …]
H A DSAPI.h90 const char *content_type; member
277 char *content_type; member
/PHP-5.5/sapi/apache2filter/
H A Dsapi_apache2.c129 ctx->r->content_type = apr_pstrdup(ctx->r->pool, val); in php_apache_sapi_header_handler()
399 char *content_type; in php_apache_request_ctor() local
405 SG(request_info).content_type = apr_table_get(f->r->headers_in, "Content-Type"); in php_apache_request_ctor()
414 content_type = sapi_get_default_content_type(TSRMLS_C); in php_apache_request_ctor()
415 f->r->content_type = apr_pstrdup(f->r->pool, content_type); in php_apache_request_ctor()
419 efree(content_type); in php_apache_request_ctor()
668 if (r->content_type && !strncmp(r->content_type, "application/x-httpd-php", content_type_len-1)) { in php_insert_filter()
669 …if (r->content_type[content_type_len] == '\0' || !strncmp(r->content_type+content_type_len, "-sour… in php_insert_filter()
H A Dphp_functions.c127 ADD_STRING(content_type); in PHP_FUNCTION()
/PHP-5.5/sapi/apache2handler/
H A Dsapi_apache2.c124 if (ctx->content_type) { in php_apache_sapi_header_handler()
125 efree(ctx->content_type); in php_apache_sapi_header_handler()
127 ctx->content_type = estrdup(val); in php_apache_sapi_header_handler()
173 if (!ctx->content_type) { in php_apache_sapi_send_headers()
174 ctx->content_type = sapi_get_default_content_type(TSRMLS_C); in php_apache_sapi_send_headers()
176 ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type)); in php_apache_sapi_send_headers()
177 efree(ctx->content_type); in php_apache_sapi_send_headers()
178 ctx->content_type = NULL; in php_apache_sapi_send_headers()
477 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor()
H A Dphp_apache.h48 char *content_type; member
/PHP-5.5/sapi/continuity/
H A Dcapi.c418 char *content_type = lstFset_get(NSG(t->req_hdrs), "content-type"); in capi_request_ctor() local
425 SG(request_info).content_type = capi_strdup(content_type); in capi_request_ctor()
436 capi_free(SG(request_info).content_type); in capi_request_dtor()
/PHP-5.5/sapi/tux/
H A Dphp_tux.c240 CONDADD(CONTENT_TYPE, content_type); in sapi_tux_register_variables()
343 SG(request_info).content_type = TG(req)->content_type; in tux_request_ctor()
/PHP-5.5/ext/soap/
H A Dphp_http.c351 char *http_headers, *http_body, *content_type, *http_version, *cookie_itt; in make_http_soap_request() local
1217 content_type = get_http_header_value(http_headers,"Content-Type: "); in make_http_soap_request()
1218 if (content_type) { in make_http_soap_request()
1221 pos = strstr(content_type,";"); in make_http_soap_request()
1223 cmplen = pos - content_type; in make_http_soap_request()
1225 cmplen = strlen(content_type); in make_http_soap_request()
1227 if (strncmp(content_type, "text/xml", cmplen) == 0 || in make_http_soap_request()
1228 strncmp(content_type, "application/soap+xml", cmplen) == 0) { in make_http_soap_request()
1243 efree(content_type); in make_http_soap_request()
/PHP-5.5/sapi/apache/
H A Dmod_php5.c198 r->content_type = pstrdup(r->pool, header_content); in sapi_apache_header_handler()
531 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE"); in init_request_info()
632 r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC); in send_php()
668 r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC); in send_php()
H A Dphp_apache.c486 if (rr->content_type) { in PHP_FUNCTION()
487 add_property_string(return_value,"content_type", (char *)rr->content_type, 1); in PHP_FUNCTION()
/PHP-5.5/sapi/thttpd/
H A Dthttpd.c459 SG(request_info).content_type = strdup(TG(hc)->contenttype);
475 if (SG(request_info).content_type)
476 free(SG(request_info).content_type);
/PHP-5.5/ext/standard/tests/file/
H A Dfile.inc192 string $content_type = "numeric",
212 $content_type = Specify type of the content to fill in the file.
235 $content_type = "numeric",
279 if ( $content_type == "empty" ) {
293 if( fill_file($file_handle, $content_type, $file_size) )
/PHP-5.5/sapi/phttpd/
H A Dphttpd.c215 SG(request_info).content_type = index == -1 ? NULL : in php_phttpd_request_ctor()
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_main.c1072 SG(request_info).content_type = NULL;
1083 char *content_type = sapi_cgibin_getenv("CONTENT_TYPE", sizeof("CONTENT_TYPE") - 1 TSRMLS_CC); local
1394 SG(request_info).content_type = (content_type ? content_type : "" );
/PHP-5.5/sapi/nsapi/
H A Dnsapi.c970 char *content_type = pblock_findval("content-type", rq->headers); in php5_execute() local
1027 SG(request_info).content_type = content_type; in php5_execute()
/PHP-5.5/sapi/apache_hooks/
H A Dphp_apache.c346 apache_request_string_slot(offsetof(request_rec, content_type), INTERNAL_FUNCTION_PARAM_PASSTHRU); in PHP_FUNCTION()
974 r->content_type = pstrdup(r->pool, type); in PHP_FUNCTION()
1298 PHP_FALIAS(content_type, apache_request_content_type, NULL)
1861 if (rr->content_type) { in PHP_FUNCTION()
1862 add_property_string(return_value,"content_type", (char *)rr->content_type, 1); in PHP_FUNCTION()
H A Dmod_php5.c343 r->content_type = pstrdup(r->pool, header_content); in sapi_apache_header_handler()
584 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE"); in init_request_info()
679 r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC); in send_php()
716 r->content_type = php_apache_get_default_mimetype(r TSRMLS_CC); in send_php()
H A DREADME82 content_type
/PHP-5.5/sapi/webjames/
H A Dwebjames.c186 SG(request_info).content_type = WG(conn)->type; in webjames_module_main()
/PHP-5.5/sapi/cgi/
H A Dcgi_main.c1157 SG(request_info).content_type = NULL;
1168 char *content_type = CGI_GETENV("CONTENT_TYPE"); local
1423 SG(request_info).content_type = (content_type ? content_type : "" );
/PHP-5.5/ext/iconv/
H A Diconv.c334 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local
360 …len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%.*s", mimetype_len ? mimetype_len : … in php_iconv_output_handler()
362 …len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (i… in php_iconv_output_handler()
364 if (content_type && SUCCESS == sapi_add_header(content_type, len, 0)) { in php_iconv_output_handler()
/PHP-5.5/sapi/pi3web/
H A Dpi3web_sapi.c273 SG(request_info).content_type = lpCB->lpszContentType; in init_request_info()

Completed in 122 milliseconds

12