Any IIS 6 Perl CGI gurus out their with their sanity intact

Jonathan Stowe jns at gellyfish.com
Wed Nov 14 15:04:17 GMT 2007


On Wed, 2007-11-14 at 14:33 +0000, David Precious wrote:
> Dave Cross wrote:
> > Quoting Bob Browning <bob at textor.com>:
> > 
> >> I put print "content-type:text/html\n\nhello"; in the top of the file and
> >> it came out.
> > 
> > Why do people do that? You're lying to the browser about the content 
> > type. You say you're going to send HTML but you actually sent plain 
> > text. It's not just you, obviously, I see it all over the place. 
> > Especially in some of the more dubious Perl/CGI books.
> > 
> > You can use text/plain as a content type you know.
> 
> Sometimes text/plain will cause the browser to ask if you want to save 
> to a file or open it in your chosen text editor

What browser is this? I don't believe I have seen one do that for ten
years and I'm not convinced that the browser that might have done that
would even run on any operating system that has had a release this
century.

/J\
-- 
This signature kills bloggers


More information about the london.pm mailing list