[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Perl CGI scripts for MacHTTP



HELP!!!!

I installed MacHTTP recently. Following which, I installed MacPerl5.0.6
and PCGI_06Feb96. I have saved all the files in the cgi-bin directory
that came in the MacHTTP package as MacHTTP CGI scripts, but there seems
to be some error. 

For example: I am running my MacHTTP on 'rtlab.ece.uc.edu' port 80.

Check out what results from trying to open URL: 
http://rtlab.ece.uc.edu/cgi-bin/test-cgi.pl  (This is the standard CGI
scripts which prints out all ENV variables)


CGI/1.0 test script report

argc is -1 
argv is 
SERVER_SOFTWARE = MacHTTP/2.0
SERVER_NAME = 
GATEWAY_INTERFACE = CGI/1.1
SERVER_PROTOCOL = HTTP/1.0
SERVER_PORT = 
SERVER_ROOT = 
REQUEST_METHOD = 
HTTP_ACCEPT = 
PATH_INFO = 
PATH = 
PATH_TRANSLATED = 
SCRIPT_NAME = 
QUERY_STRING = 
QUERY_STRING_UNESCAPED = 
REMOTE_HOST = 
REMOTE_IDENT = 
REMOTE_ADDR = 
REMOTE_USER = 
AUTH_TYPE = 
CONTENT_TYPE = 
CONTENT_LENGTH = 
DOCUMENT_ROOT = 
DOCUMENT_URI = 
DOCUMENT_NAME = 
DATE_LOCAL = 
DATE_GMT = 
LAST_MODIFIED = 


What is going wrong? Why are all the environment variables not fetched?
Please help! I am at my wits end. I am not able to write any CGI-script
without this.

Thanks a lot.

Regards,
Prasanna
pinamdar@ece.uc.edu