I used the following files in cgi-bin and html directories:
---CGI-BIN File begins--
#! /usr/bin/perl
print "Content-type: text/plain\n\n";
print "HTTP_REFERER=$ENV{\"HTTP_REFERER\"}\n";
print "HTTP_USER_AGENT=$ENV{\"HTTP_USER_AGENT\"}\n";
print "REQUEST_METHOD=$ENV{\"REQUEST_METHOD\"}\n";
print "CONTENT_LENGTH=$ENV{\"CONTENT_LENGTH\"}\n";
print "QUERY_STRING=$ENV{\"QUERY_STRING\"}\n";
---CGI-BIN File ends--
---html File begins--
<HTML>
<HEAD>
<TITLE>
Testing shell variables
</TITLE>
</HEAD>
<BODY>
<A href="http://localhost/cgi-bin/testcgi?query=some%20query">
Check the shell variables
</A>
</BODY>
</HTML>
---html File ends--------------------------------------
.... and I got the following result in Netscape
---- netscape output starts------------------
HTTP_REFERER=http://localhost/testcgi.html
HTTP_USER_AGENT=Mozilla/4.61 [en] (X11; I; Linux 2.2.14-12 i586)
REQUEST_METHOD=GET
CONTENT_LENGTH=
QUERY_STRING=query=some%20query
---- netscape output ends -------------------
If you don't get this, there must be a problem in the cgi ...
regards,
Sandip
--
Sandip Bhattacharya
[EMAIL PROTECTED]
DSF Internet Services Pvt. Ltd.
ICQ: 38380743
----------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/linux-delhi/