Win-CGI In-lining


The RCW scripting command can be used to in-line the output of Win-CGI applications in an HTML file. This is similar to the exec command defined in Server-Side includes.

The following illustrates execution of the cgitest.exe Win-CGI script:


Current Date/Time is 5/18/2012 1:00:51 PM
[CGI]
Request Protocol=HTTP/1.0
Request Method=GET
Document Root=D:\sambar\docs\
Physical Path=D:\sambar\docs\
Executable Path=D:\sambar\cgi-win\cgitest.exe
Query String=foo=bar
User Agent=CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Content Length=0
Content File=D:\sambar\tmp\W10-30-0.txt
Authentication Method=BASIC
Authentication Realm=Sambar Security
Authenticated User=
Authenticated Password=
Server Software=SAMBAR
Server Name=lapband.sterlet.com
Server Port=80
CGI Version=CGI/1.3 WIN
Remote Address=38.107.179.210
[Accept]
*/*=Yes
[System]
Debug Mode=no
Output File=D:\sambar\tmp\W10-30-1.out
Content File=D:\sambar\tmp\W10-30-0.txt
GMT Offset=3600
Extra Headers]
HTTP_PRAGMA=no-cache
HTTP_CACHE_CONTROL=no-cache
HTTP_CONNECTION=close
HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING=gzip
HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
HTTP_ACCEPT=text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_USER_AGENT=CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_HOST=lapband.sterlet.com
HTTP_X_CC_ID=ccc01-02

Return to the samples page.