Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 21372 invoked by uid 6000); 13 Nov 1999 02:50:09 -0000 Received: (qmail 21265 invoked by uid 2001); 13 Nov 1999 02:50:01 -0000 Received: (qmail 18730 invoked by uid 2012); 13 Nov 1999 02:45:51 -0000 Message-Id: <19991113024551.18729.qmail@hyperreal.org> Date: 13 Nov 1999 02:45:51 -0000 From: Terry Manderson Reply-To: terry@northgate.net To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: mod_rewrite/5299: Mod-rewrite of cgi changes REQUEST_METHOD Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 5299 >Category: mod_rewrite >Synopsis: Mod-rewrite of cgi changes REQUEST_METHOD >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Nov 12 18:50:00 PST 1999 >Last-Modified: >Originator: terry@northgate.net >Organization: apache >Release: 1.3.9 >Environment: Solaris 7, GCC >Description: I have a rewrite rule of RewriteRule ^/scripts/(.*) http://www2.northgate.net/cgi-bin/$1.exe [T=application/x-httpd-cgi,L] the rewrite causes a normal POST turn into a GET, hence the cgi info is lost. The same thing appears to happen for a simple version of the above using Redirect. see problem report 4247, I beleive this to be the same problem.. >How-To-Repeat: set up two web servers, one has the POST form on it the other has the cgi programs. redirect the local cgi directory using mod_rewrite to the second web server (the one with the cgi scripts) >Fix: look for the request_method prior to the rewrit rule being applied and try not to munge it. >Audit-Trail: >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! ]