Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The “Content-Type” header I output from my CGI script shows up in the Web browser. What gives?

0
Posted

The “Content-Type” header I output from my CGI script shows up in the Web browser. What gives?

0

You are using PerlIS as your Perl interpreter on an IIS Web server (this is set up by default by the install.bat program), but you’re not outputting an HTTP status line.

0

You are using PerlIS as your Perl interpreter on an IIS Web server (this is set up by default by the install.bat program), but you’re not outputting an HTTP status line. See question 7.4 for details on how to fix your problem. 7.13. When I try to run a CGI script from my browser, it tries to download a file of type “application/x-perl” instead. What gives? Your Web server has been misconfigured. It doesn’t know that it should execute your Perl program, so it’s just returning it to the browser. See section 6 of this document for details on how to configure your particular Web server to know that Perl scripts should be executed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123