From nobody@hyperreal.com Sat May 3 06:52:56 1997 Received: (from nobody@localhost) by hyperreal.com (8.8.5/8.8.5) id GAA22324; Sat, 3 May 1997 06:52:56 -0700 (PDT) Message-Id: <199705031352.GAA22324@hyperreal.com> Date: Sat, 3 May 1997 06:52:56 -0700 (PDT) From: Kurt Erik Lindqvist Reply-To: kurtis@eunet.se To: apbugs@hyperreal.com Subject: cgi programs won't accept arguments X-Send-Pr-Version: 3.2 >Number: 533 >Category: general >Synopsis: cgi programs won't accept arguments >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat May 3 09:30:02 1997 >Last-Modified: Sat May 3 13:32:31 PDT 1997 >Originator: kurtis@eunet.se >Organization: >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: State-Changed-From-To: open-closed State-Changed-By: dgaudet State-Changed-When: Sat May 3 13:32:30 PDT 1997 State-Changed-Why: That is how it's supposed to behave according to the CGI spec. If the QUERY_STRING contains any equal sign then no argv is created. The use of the argv array is actually deprecated, and you should use the QUERY_STRING itself (which is always present). Thanks for using Apache! Dean >Unformatted: