Home
last modified time | relevance | path

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

/PHP-8.1/ext/curl/tests/
H A Dbug46739.phpt2 Bug #46739 (array returned by curl_getinfo should contain content_type key)
15 echo (array_key_exists('content_type', $info)) ? "set" : "not set";
/PHP-8.1/main/
H A DSAPI.c176 char *content_type = estrndup(SG(request_info).content_type, content_type_length); in sapi_read_post_data() local
186 for (p=content_type; p<content_type+content_type_length; p++) { in sapi_read_post_data()
191 content_type_length = p-content_type; in sapi_read_post_data()
221 SG(request_info).content_type_dup = content_type; in sapi_read_post_data()
299 char *mimetype, *charset, *content_type; in get_default_content_type() local
321 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
322 p = content_type + prefix_len; in get_default_content_type()
330 content_type = (char*)emalloc(*len + 1); in get_default_content_type()
333 return content_type; in get_default_content_type()
462 && SG(request_info).content_type in sapi_activate()
[all …]
H A DSAPI.h84 const char *content_type; member
271 char *content_type; member
/PHP-8.1/sapi/apache2handler/
H A Dsapi_apache2.c119 if (ctx->content_type) { in php_apache_sapi_header_handler()
120 efree(ctx->content_type); in php_apache_sapi_header_handler()
122 ctx->content_type = estrdup(val); in php_apache_sapi_header_handler()
168 if (!ctx->content_type) { in php_apache_sapi_send_headers()
169 ctx->content_type = sapi_get_default_content_type(); in php_apache_sapi_send_headers()
171 ap_set_content_type(ctx->r, apr_pstrdup(ctx->r->pool, ctx->content_type)); in php_apache_sapi_send_headers()
172 efree(ctx->content_type); in php_apache_sapi_send_headers()
173 ctx->content_type = NULL; in php_apache_sapi_send_headers()
517 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor()
H A Dphp_apache.h49 char *content_type; member
H A Dphp_functions.c149 ADD_STRING(content_type); in PHP_FUNCTION()
/PHP-8.1/ext/soap/tests/
H A Dcustom_content_type.phpt38 'content_type' => sprintf("Multipart/Related")
64 'content_type' => sprintf("")
/PHP-8.1/ext/soap/
H A Dphp_http.c346 char *content_type, *http_version, *cookie_itt; in make_http_soap_request() local
1223 content_type = get_http_header_value(ZSTR_VAL(http_headers), "Content-Type: "); in make_http_soap_request()
1224 if (content_type) { in make_http_soap_request()
1227 pos = strstr(content_type,";"); in make_http_soap_request()
1229 cmplen = pos - content_type; in make_http_soap_request()
1231 cmplen = strlen(content_type); in make_http_soap_request()
1233 if (strncmp(content_type, "text/xml", cmplen) == 0 || in make_http_soap_request()
1234 strncmp(content_type, "application/soap+xml", cmplen) == 0) { in make_http_soap_request()
1249 efree(content_type); in make_http_soap_request()
/PHP-8.1/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-8.1/sapi/fpm/fpm/
H A Dfpm_main.c972 SG(request_info).content_type = NULL; in init_request_info()
981 char *content_type = FCGI_GETENV(request, "CONTENT_TYPE"); in init_request_info() local
1329 SG(request_info).content_type = (content_type ? content_type : "" ); in init_request_info()
/PHP-8.1/sapi/cgi/
H A Dcgi_main.c1180 SG(request_info).content_type = NULL;
1191 char *content_type = CGI_GETENV("CONTENT_TYPE"); local
1445 SG(request_info).content_type = (content_type ? content_type : "" );
/PHP-8.1/ext/iconv/
H A Diconv.c302 char *s, *content_type, *mimetype = NULL; in php_iconv_output_handler() local
327 …len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%.*s", mimetype_len ? mimetype_len : … in php_iconv_output_handler()
329 …len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (i… in php_iconv_output_handler()
331 if (content_type && SUCCESS == sapi_add_header(content_type, len, 0)) { in php_iconv_output_handler()
/PHP-8.1/sapi/litespeed/
H A Dlsapi_main.c632 SG(request_info).content_type = pContentType ? pContentType : ""; in init_request_info()
/PHP-8.1/sapi/cli/
H A Dphp_cli_server.c1889 request_info->content_type = val; in php_cli_server_client_populate_request_info()

Completed in 57 milliseconds