Re: Changing content-type in response headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux