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

Bug#350821: marked as done (cgi.html.en: text/plain)



Your message dated Sun, 12 Nov 2006 12:49:48 +0100
with message-id <1163332195.5324.8.camel@darwin.os9.nl>
and subject line cgi.html.en: text/plain
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apache2-doc
Version: 2.0.53-5
Severity: wishlist
File: /usr/share/doc/apache2-doc/manual/howto/cgi.html.en
Tags: upstream

Isn't "Your first CGI program" example,
        #!/usr/bin/perl
        print "Content-type: text/html\n\n";
        print "Hello, World.";
a bad example, producing invalid HTML? Should he use text/plain?


--- End Message ---
--- Begin Message ---
Hi,

> Isn't "Your first CGI program" example,
>         #!/usr/bin/perl
>         print "Content-type: text/html\n\n";
>         print "Hello, World.";
> a bad example, producing invalid HTML? Should he use text/plain?

Stictly speaking it's bad HTML, but it's a good example: it's simple and
to the point. Adding "<doctype...." etc only adds a lot of noise, and it
is documented clearly right above that example to what value you should
set content-type or what you should output. And it works just fine.

I consider this a non-bug.


Thijs

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply to: