RE: [Hampshire] Apache config & cgi-bin

Top Page

Reply to this message
Author: Vic
Date:  
To: hampshire
Subject: RE: [Hampshire] Apache config & cgi-bin
> It's almost too Mickey Mouse to fail:

It fails :-(

> #!/bin/sh
> echo "Content-type: text/html
> <html>
> <head>
> <title>CGI test</TITLE>
> </head>


No closing quote

> echo "Query string is "
> echo $QUERY_STRING
> echo "<P>"
> echo REMOTE_ADDR = $REMOTE_ADDR
> echo "<P>"
> echo REMOTE_ADDR = $REMOTE_ADDR
> echo "<P>"
> echo CONTENT_LENGTH = $CONTENT_LENGTH
> echo "<P>"
> echo Reading stuff from stdin
> echo "<P>"
> read STUFF


It now pauses & waits for stdin - I *believe* Apache will time this out &
abort the script (hence a malformed page)

What are you trying to do?

Vic.