Searched defs:content_type (Results 1 - 10 of 10) sorted by relevance

/PHP_TRUNK/sapi/apache2handler/
H A Dphp_apache.h51 char *content_type; member in struct:php_struct
/PHP_TRUNK/main/
H A DSAPI.h93 const char *content_type; member in struct:__anon284
281 char *content_type; member in struct:_sapi_post_entry
H A DSAPI.c190 uint content_type_length = (uint)strlen(SG(request_info).content_type);
191 char *content_type = estrndup(SG(request_info).content_type, content_type_length); local
201 for (p=content_type; p<content_type+content_type_length; p++) {
206 content_type_length = p-content_type;
217 if ((post_entry = zend_hash_str_find_ptr(&SG(known_post_content_types), content_type,
228 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type);
236 SG(request_info).content_type_dup = content_type;
309 char *mimetype, *charset, *content_type; local
[all...]
/PHP_TRUNK/sapi/continuity/
H A Dcapi.c418 char *content_type = lstFset_get(NSG(t->req_hdrs), "content-type"); local
425 SG(request_info).content_type = capi_strdup(content_type);
436 capi_free(SG(request_info).content_type);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c1063 SG(request_info).content_type = NULL;
1074 char *content_type = sapi_cgibin_getenv("CONTENT_TYPE", sizeof("CONTENT_TYPE") - 1 TSRMLS_CC); local
1385 SG(request_info).content_type = (content_type ? content_type : "" );
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c969 char *content_type = pblock_findval("content-type", rq->headers); local
1026 SG(request_info).content_type = content_type;
/PHP_TRUNK/ext/soap/
H A Dphp_http.c342 char *http_body, *content_type, *http_version, *cookie_itt; local
1197 content_type = get_http_header_value(http_headers->val, "Content-Type: ");
1198 if (content_type) {
1201 pos = strstr(content_type,";");
1203 cmplen = pos - content_type;
1205 cmplen = strlen(content_type);
1207 if (strncmp(content_type, "text/xml", cmplen) == 0 ||
1208 strncmp(content_type, "application/soap+xml", cmplen) == 0) {
1216 efree(content_type);
1223 efree(content_type);
[all...]
/PHP_TRUNK/sapi/apache2filter/
H A Dsapi_apache2.c127 ctx->r->content_type = apr_pstrdup(ctx->r->pool, val);
397 char *content_type; local
403 SG(request_info).content_type = apr_table_get(f->r->headers_in, "Content-Type");
412 content_type = sapi_get_default_content_type(TSRMLS_C);
413 f->r->content_type = apr_pstrdup(f->r->pool, content_type);
415 efree(content_type);
664 if (r->content_type && !strncmp(r->content_type, "application/x-httpd-php", content_type_len-1)) {
665 if (r->content_type[content_type_le
[all...]
/PHP_TRUNK/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_TRUNK/ext/iconv/
H A Diconv.c396 char *s, *content_type, *mimetype = NULL; local
422 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (size_t) strlen(mimetype), mimetype, (size_t)(p - get_output_encoding(TSRMLS_C)), get_output_encoding(TSRMLS_C));
424 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (size_t) strlen(mimetype), mimetype, get_output_encoding(TSRMLS_C));
426 if (content_type && SUCCESS == sapi_add_header(content_type, (uint)len, 0)) {

Completed in 22 milliseconds