>Number:         533
>Category:       general
>Synopsis:       cgi programs won't accept arguments
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat May  3 09:30:02 1997
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.2b10
>Environment:
SunOS calvin 5.5.1 Generic sun4m sparc SUNW,SPARCstation-5
gcc 2.7.2.1

>Description:
When giving CGI programs arguments on the command line they are not sent to the 
program.

I.e :
Calling a CGI-scrit :

http://internal.eunet.se/cgi-bin/test-cgi?hej=hopp&hopp

Results in : 

CGI/1.0 test script report:

argc is 0. argv is .

SERVER_SOFTWARE = Apache/1.2b10
SERVER_NAME = internal.eunet.se
GATEWAY_INTERFACE = CGI/1.1
SERVER_PROTOCOL = HTTP/1.0
SERVER_PORT = 80
REQUEST_METHOD = GET
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
PATH_INFO = 
PATH_TRANSLATED = 
SCRIPT_NAME = /cgi-bin/test-cgi
QUERY_STRING = hej=hopp&hopp
REMOTE_HOST = kurtis.eunet.se
REMOTE_ADDR = 195.43.226.130
REMOTE_USER =
AUTH_TYPE =
CONTENT_TYPE =
CONTENT_LENGTH =

That is with no arguments. The same if I write a small perl script to print all 
that is on the  command line, 
it shows nothing.
>How-To-Repeat:

>Fix:

>Audit-Trail:
>Unformatted:


Reply via email to