Charles Buchwald wrote/ schreef:

> This produced the desired effect in the stream, but the problem still
> exists: the appearance of no stdin when the cgi script is called from my
> stack....
> 
> Is this a problem with my server, or with MC, or my scripts?
> 
> I have searched in vain for an example of a cgi script that works similarly.
On UNIX you have to use the global variable $QUERY_STRING as input, stdin is
empty. You script would be then:

#!/usr/bin/mc
on startup
    put "Stdin received: " & $QUERY_STRING after buffer
    # put "Content-Type: text/html" & cr
    # should be of course
    put "Content-Type: text/plain" & cr
    # but doesn't produce an error
    put "Content-Length:" && the length of buffer & cr & cr
    put buffer
end startup

> Any advice?
> 
> - Charles
Hope this helps,
Sjoerd


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to