Received: (qmail 98006 invoked by uid 501); 1 Oct 2000 16:34:00 -0000 Message-Id: <20001001163400.98005.qmail@locus.apache.org> Date: 1 Oct 2000 16:34:00 -0000 From: Frank Ho Reply-To: frank_ho@yeah.net To: submit@bugz.apache.org Subject: "/cgi/mycgi?a" work well but "/cgi/mycgi?a=b" can't work with message "Premature end of script header" in error_log! X-Send-Pr-Version: 3.110 >Number: 6611 >Category: mod_cgi >Synopsis: "/cgi/mycgi?a" work well but "/cgi/mycgi?a=b" can't work with message "Premature end of script header" in error_log! >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: mistaken >Submitter-Id: apache >Arrival-Date: Sun Oct 01 09:40:00 PDT 2000 >Closed-Date: Sun Oct 01 09:47:40 PDT 2000 >Last-Modified: Sun Oct 01 09:47:40 PDT 2000 >Originator: frank_ho@yeah.net >Release: 1.3.12 >Organization: >Environment: Red Hat Linux 6.1 >Description: I wrote a CGI script in C named "mycgi". It can run by "/cgi/mycgi?a" but can't run by "/cgi/mycgi?a=b". A message "Premature end of script header" in error_log. I wrote a debug message at the beginning of main of "mycgi.c". In the case of no '=' I can see the message and the other I can't. That means "mycgi" doesn't run in that case! >How-To-Repeat: Run any cgi script from browser with "?a=b". >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: wrowe State-Changed-When: Sun Oct 1 09:47:40 PDT 2000 State-Changed-Why: [This is a standard response.] This is a CGI programming or basic configuration issue. As mentioned on the main bug database page, we must refer all such basic or non-Apache-related questions to the comp.infosystems.www.servers.unix and related newsgroups. Please ask your question there. Please also search the FAQ and the bug database. Thanks for using Apache! Class-Changed-From-To: sw-bug-mistaken Class-Changed-By: wrowe Class-Changed-When: Sun Oct 1 09:47:40 PDT 2000 >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]