W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1997

Re: Content-type Header not turned off in cgi

From: Ignacio Bustamante <IggieBee@worldnet.att.net>
Date: Fri, 22 Aug 1997 13:52:12 -0400
Message-ID: <33FDD1CC.2533@worldnet.att.net>
To: Anselm Baird-Smith <abaird@w3.org>
CC: www-jigsaw@w3.org
Perhaps I didn't clarify the problem enough.

I created a MINME type for pl files, using the cgi resource specified on
the tutorial (section on running cgi scripts) for this. So far so good,
as i've got the programs running.

The boolean attribute "noheaders", used for for this on the Admin
screen, Is Not Working!. On your message you are referring to this
condition as a feature. Could you please expand some more, as to why
would you call this "non-working" feature, a feature? (I am completely
at loss here.)

Setting this option either "true" or "false", has no effect, as the
server program continues to emit the "Content-type" header, with total
disregard for this setting!. 

In my case I have a fairly large set of perl scripts that do emit their
own Content-type header, so all the pages, either filtered or generated
by the scripts, now end up with TWO Content-type headers being issued,
insted of one.

 In this way, the second content-type header that is issued (because the
"noheader" attribute is being ignored!), gets inserted as annoying text
at the beggining of all the html pages processed by the cgi.

That's all. Since I am barely started to scratch the surface on
java programming, (I know nothing!), I do require some help, on how to
fix this problem. (Please!)


Anselm Baird_Smith wrote:
> The 'noheader' option means that the server will not even examine what
> it sends back to the client (ie your script has to do everything, all
> its output is sent straight back to the client).
> Have you tried emitting a Content-Type from your script ? This should
> defintely work. Otherwise, you may not be able to send back a reply
> with no content type, but this seems like a feature rather than a bug
> (why would you really want to send back something without telling what
> it is ?)
>  > Except for this "buglette" the cgi, perl libraries, and htmls it calls,
>  > works ok. And it loads images too!! from the cgi-bin subdirectory.
> Cool
>  > Could someone please give some help/advise on this?
> Anselm.

 R.H.P. On-Line Stores      |       Online ordering of
 14629 SW 104th St.         |             RHP
 Miami, Florida  33186      |   <http://www.rhpworld.org/>
 1-305-388 3103             | <mailto:rhpstores@rhpworld.org>
Received on Friday, 22 August 1997 13:40:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:31 UTC