in reply to Cgi script with no output to webpage?

This advice is likely to be worth even LESS than my usual advice, since I know near nothing about webservers.

It sounds like the SSI Include mechanism you're using expects HTML output back. You should check if there's an "administrative include" or "no output" include alternative supported.

But what happens if you just return this:

print "Content-type: text/html\n\n\n";
(note the 3rd newline)

It's valid html, and it shouldn't mess up formatting much...

Another alternative would be to return a 1x1 IMG tag to a pixel-sized GIF file, I guess... Or just a header and empty html tags:

print "Content-type: text/html\n\n<html></html>\n";
Hope this helps!

Mike

Replies are listed 'Best First'.
Re^2: Cgi script with no output to webpage?
by Your Mother (Archbishop) on Aug 11, 2008 at 00:06 UTC
    It's valid html

    I think that would be better as "valid page content." A newline by itself is not valid HTML.

Re^2: Cgi script with no output to webpage?
by pot1906dk (Initiate) on Aug 10, 2008 at 10:42 UTC
    Aren't things sometimes uncomplicated?

    Of course I could return a single pixel image, but it just spoiled my sense of perfection. Same thing with the IFRAME solution. Isn't IFRAME deprecated these days?

    The solution are simply to send the content type header as mentioned by Mike. It even worked with only 2 newlines (at least on Windows). Thanks for this quick help to my prayers.

    Poul