home *** CD-ROM | disk | FTP | other *** search
/ Creating Your Own America Online Web Pages / Creating Your Own America Online Web Pages.iso / TOOLS / WHTTPD / HTDOCS / HTTPDDOC / INFO / CGI / TEST-CGI.TXT < prev   
Encoding:
Text File  |  1994-04-12  |  744 b   |  38 lines

  1. rem
  2. rem ****************
  3. rem * TEST-CGI.BAT *
  4. rem ****************
  5. rem
  6. rem Test script for use with CGI example document included
  7. rem with server documentation. Blank line REQUIRED after
  8. rem Content-type header!
  9. rem
  10. rem Bob Denny <rdenny@netcom.com>
  11. rem 12-Apr-94
  12. rem
  13. rem Echo is OFF at script entry
  14. rem
  15. echo Content-type:text/plain
  16. echo.
  17. echo CGI/1.0 test script report:
  18. echo.
  19. echo argc = %#  argv:
  20. echo.
  21. if NOT %#==0  echo %1 %2 %3 %4 %5 %6 %7 %8
  22. if %#==0  echo {empty}
  23. echo.
  24. echo environment variables:
  25. echo.
  26. set
  27. echo.
  28. if NOT %REQUEST_METHOD%==POST goto done
  29. echo content for POST:
  30. echo ---- begin content ----
  31. type %CONTENT_FILE%
  32. echo.
  33. echo ----- end content -----
  34. echo.
  35. :done
  36. echo -- end of report --
  37.  
  38.