Gossamer Forum
Home : General : Perl Programming :

Cannot get media type from 'cgi-script'

Quote Reply
Cannot get media type from 'cgi-script'
See this message repeatedly in my error log and would like to eliminate it. the following sub is called before each page is generated:

Code:
sub html_print_headers {

# --------------------------------------------------------
# Print out the headers if they haven't already been printed.


if (!$html_headers_printed) {
print "Content-type: text/html\n\n";
$html_headers_printed = 1;
}
}



when i look at source code on any page, the content-type statement isn't there. is this the problem? can i eliminate it by placing

Code:
<meta http-equiv="X-UA-Compatible" content="IE=edge" content-type="text/html; charset=UTF-8">
in the header? i'm just adding content-type; the first part was generated by bootstrap i think.

Quote Reply
Re: [delicia] Cannot get media type from 'cgi-script' In reply to
Hi,

What is the full line? Which file is it complaining about? A quick google looks like its related to someone trying to access a php script from within the cgi-bin (which won't work). Is it possibly linked to your WordPress wanna-be hackers probing your server?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!