| [reply] [d/l] |
That's a bit better. It printed out less text. It only printed out that specific information:
HTTP/1.1 200 OK Content-Type: text/html
instead of :
HTTP/1.1 200 OK Date: Sun, 20 Oct 2002 17:54:06 GMT Server: Microsoft-IIS/5.0 Content-type: text/html
| [reply] |
Here's the fix. It is a problem with the server settings.
Here is how to fix the settings:
http://perl.xotechnologies.net/tutorials/SSI/SSI.htm
Basically you must associate perl.exe with SSI instead of PerlIS.dll otherwise the HTTP header will show up in your browser
Thanks for all the help.
TE
| [reply] |
Is this a problem with the server settings or do I need to add something else to my perl script?
Yes, it is a problem with the server settings, the server should not dictate your Content-type header. Check http://w3.org/CGI.
P.S.: consider using code tags in the future ;)
--
http://fruiture.de
| [reply] |
Perhaps the server is ignoring your header because it does not end with CRLFs.
use Socket qw(:crlf);
print "Content-Type: text/html$CRLF$CRLF";
may help. If not, then it must be a server configuration.
Update: code tag fixed. sorry!
-nuffin zz zZ Z Z #!perl | [reply] [d/l] |
Thanks for the suggestion. I tried it but the header is still being printed before my document information.
Twitchy Eye
| [reply] |