0

I am testing a CGI that locally is working fine as HTML, but when executed from DreamHost it shows as text:

http://www.fivetechsoft.net/cgi-bin/tutor01.cgi

If executed locally it shows fine:

localhost/cgi-bin/tutor01.cgi

Any hints why it is not seen as HTML from DreamHost ? Content-Type is properly set as "Content-Type: text/html", thanks

Antonio

4

1 に答える 1

1

Apache が偽のヘッダーを送信しているように見えます。ANSI エスケープ コードのようです。これは、Content-Type 行が無効であることを意味し、Apache はそれをデフォルトの Content-Type に置き換えます。

$ curl -si http://www.fivetechsoft.net/cgi-bin/tutor01.cgi | less
HTTP/1.1 200 OK
Date: Sat, 27 Oct 2012 20:31:38 GMT
Server: Apache
ESC[0mESC[1;1HESC[?25hESC[0;10;37;40mESC[mContent-Type: text/html
Transfer-Encoding: chunked
Content-Type: text/plain

<html>
<head>
...
于 2012-10-27T20:35:19.830 に答える