Xymon Mailing List Archive search

html charset setting

4 messages in this thread

list Sergey · Sun, 31 Mar 2013 05:18:05 +0400 ·
Hello.

I found information about HTMLCONTENTTYPE in xymonserver.cfg,
but I can't see content-type definition in html header:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="REFRESH" CONTENT="60">
<META HTTP-EQUIV="EXPIRES" CONTENT="Sat, 01 Jan 2001 00:00:00 GMT">
<TITLE>red : Xymon - Status @ Sun Mar 31 04:58:57 2013</TITLE>

What I need to check ?

-- 
Regards, Sergey
list Jeremy Laidman · Tue, 2 Apr 2013 12:33:38 +1100 ·
The content type is not in the HTML header, it's in the HTTP header.  To
check, try this:

telnet localhost 80
HEAD /xymon-cgi/ghostlist.sh HTTP/1.0
<press enter twice>

You'll see the HTTP headers, including "Content-type: nnn/mmm"

Easier if you have curl installed:

curl --head http://localhost/xymon-cgi/ghostlist.sh

J
quoted from Sergey


On 31 March 2013 12:18, Sergey <user-b81e5492d2d9@xymon.invalid> wrote:
Hello.

I found information about HTMLCONTENTTYPE in xymonserver.cfg,
but I can't see content-type definition in html header:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="REFRESH" CONTENT="60">
<META HTTP-EQUIV="EXPIRES" CONTENT="Sat, 01 Jan 2001 00:00:00 GMT">
<TITLE>red : Xymon - Status @ Sun Mar 31 04:58:57 2013</TITLE>

What I need to check ?

--
Regards, Sergey

list Sergey · Tue, 2 Apr 2013 16:45:32 +0400 ·
quoted from Jeremy Laidman
On Tuesday 02 April 2013, Jeremy Laidman wrote:
The content type is not in the HTML header, it's in the HTTP header.  To
check, try this:
You right, thanks.
telnet localhost 80
HEAD /xymon-cgi/ghostlist.sh HTTP/1.0
<press enter twice>
It works:

HTTP/1.1 200 OK
Date: Tue, 02 Apr 2013 12:19:55 GMT
Server: Apache/2.2.22 (Unix) mod_perl/2.0.4 Perl/v5.12.5
Connection: close
Content-Type: text/html; charset=utf-8

But it not works for users. :-( Firefox 17.0.4 and IE9 are not
recognize it.

I solved problem partially by adding to headers
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
but I would like to solve the problem globally...

-- 
Regards,
Sergey
list Sergey · Thu, 4 Apr 2013 15:21:22 +0400 ·
quoted from Sergey
On Tuesday 02 April 2013, Sergey wrote:
HTTP/1.1 200 OK
Date: Tue, 02 Apr 2013 12:19:55 GMT
Server: Apache/2.2.22 (Unix) mod_perl/2.0.4 Perl/v5.12.5
Connection: close
Content-Type: text/html; charset=utf-8

But it not works for users. :-( Firefox 17.0.4 and IE9 are not
recognize it.
Strange but it works for some pages. I do not understand it...
quoted from Sergey
I solved problem partially by adding to headers
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
but I would like to solve the problem globally...
I seems what it changed all needed headers:
perl -p -e 's#<HEAD>#<HEAD>\n<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">#;' -i web/*_header

And I remove charset from $HTMLCONTENTTYPE.

-- 
Regards,
Sergey