Hello,
        I've been running into strange problems while using mod_cgi /
mod_cgid. Any ideas what might be happening ?.

CASE 1: mod_cgi hangs but works with mod_cgid

#!/bin/sh
echo "Content-type: text/html\n\n <html><body>"
/usr/sbin/ping SOME_HOST_YOU_CAN_PING -n 5
echo "</body></html>"


CASE 2: mod_cgi works but hangs with mod_cgid

#!/bin/sh
print "Content-type: text/html\n\n<html><body>\n"
print "<form method=post>\n"

if [[ -n $CONTENT_LENGTH ]] ; then
  #This read fails with mod_cgid
  read CONTENT_STRING

  print "Content:<br>$CONTENT_STRING <br><br>"
fi

print "field1 data:\n"
print "<INPUT MAXLENGTH=8 SIZE=10 NAME=field1 VALUE=><br>\n"
print "field2 data:\n"
print "<INPUT MAXLENGTH=8 SIZE=10 NAME=field2 VALUE=><br>\n"
print "<INPUT TYPE=submit VALUE=submit>\n"
print "<INPUT TYPE=reset VALUE=reset>\n"
print "</form>\n"

print "</body></html>"

Thanks
-Madhu

Reply via email to