By default, CGI::Application uses CGI which will output the header 'content-type' by default:
produces:#!/usr/bin/perl use CGI qw/:standard/; print header, start_html('A Simple Example'), end_html;
Normally, for web pages serving html, you want/need that line. Why do you think it's weird? What problems is it causing you?Content-Type: text/html; charset=ISO-8859-1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> <head> <title>A Simple Example</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> </body> </html>
In reply to Re: Unwanted line (CGI question)
by derby
in thread Unwanted line (CGI question)
by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |