httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sabherwal, Balvinder (MBS)" <>
Subject RE: Internal Error
Date Tue, 15 Jan 2002 13:29:38 GMT
-----Original Message-----
From: Mike Arrison []
Sent: Tuesday, January 15, 2002 8:09 AM
Subject: RE: Internal Error

> Most likely you're forgetting the Content-type declaration.  Before
> outputting any HTML code from a script, you're going to need to print
> something like "Content-type: text/html\n\n".  So in Perl it would be
> something like:

> print "Content-type: text/html\n\n";
> print "<html><head>...
> ...

I am using the library to print the html and that takes care of
printing the Content-type output as the first line for the HTML. if I run
the script from the command prompt, I get the HTML output which I can copy
and paste to a html file and it work fine i.e. I can open that file from the
explorer and it looks the way it should be. Its just the problem when this
cgi script send the output directly to the web server to publish the HTML

Complete lines from the output are as below :

main::(testapi.cgi:6):  $webapp->run();
Content-Type: text/html; charset=ISO-8859-1

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
<html xmlns="" lang="en-US"><head><title>Sysmon
</head><body><form method="post" action="/testapi.cgi" >
<select name="apps">
<option  value="Landscape">Landscape</option>
<option  value="Phhorce">Phhorce</option>
<input type="hidden" name="rm" value="mode2" /><input type="submit"
name=".submit" />

Debugged program terminated.  Use q to quit or R to restart,

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message