httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug McNutt <dougl...@macnauchtan.com>
Subject Re: [users@httpd] Changing content-type in response headers
Date Tue, 27 Mar 2007 17:26:18 GMT
At 19:34 +0000 3/27/07, Dmitriy Gorbenko wrote:
>I have an apache 2.2.4, which handles specific queries by module, written using mod_cplusplus
library.
>I was using Apache2.2.3 for a long time (as only it was released) and all going right.
But after changing to 2.2.4 troubles arrived: apache return in response header wrong content-type.
Instead of 'text/vnd.wap.wml' which apache-2.2.3 returns, apache2.2.4 returns 'text/html'.
Content-type 'text/vnd.wap.wml' is set  by my module. But client gets 'text/html'.

I asked something similar a few weeks ago and got a somewhat cryptic answer which won't work
for me because I don't have permission to issue directives on the machine involved which uses
Apache 1.3.37  but. . .

At 22:41 +0000 3/6/07, matt farey wrote:
>AddDefaultCharset is available in Apache 1.3.12 and later,
>AddCharSet after Apache 1.3.10

It appears that apache checks for extra filename extensions that are keyed to MIME-like types
that you have to allow for with directives.

I'm still looking for something that will honor my html code lines like

HTTP-equiv: type text/html; charset utf-8

but I haven't found it yet. My web host is about to do a major update and things might soon
be different.

-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message