Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 98126 invoked by uid 500); 8 May 2002 10:17:06 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 98115 invoked from network); 8 May 2002 10:17:06 -0000 Received: from carbon.btinternet.com (HELO carbon) (194.73.73.92) by daedalus.apache.org with SMTP; 8 May 2002 10:17:06 -0000 Received: from host213-1-164-18.btinternet.com ([213.1.164.18] helo=btinternet.com) by carbon with esmtp (Exim 3.22 #8) id 175OVa-0001F4-00 for users@httpd.apache.org; Wed, 08 May 2002 11:17:19 +0100 Sender: Jon Message-ID: <3CD8FB2E.F462F4DA@btinternet.com> Date: Wed, 08 May 2002 11:17:18 +0100 From: Jon Ferguson Reply-To: ferguson@omegasoftware.co.uk Organization: Omega Software Ltd X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: users@httpd.apache.org Subject: Re: mod_rewrite - changing a Post to a Get? References: <3CD85B39.9498204D@btinternet.com> <3CD85C42.2060601@slive.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Joshua, Thanks for the info... I have not had any success with the internal redirect... if I remove the [R] then I get a 404 page not found error. I'm using mod_jk to link up the back-end tomcat servers (it does do load balancing). I wonder if somehow it needs an external redirect for this to work? Cheers, Jon Joshua Slive wrote: > Jon Ferguson wrote: > > Hi, > > > > I'm trying to use Apache 1.3 with Jakarta Tomcat 4.0 and need to rewrite > > a URL from a cgi script to an Action target within the Struts framework. > > > > Here's my rule: > > > > RewriteRule ^/posicart\.cgi$ /BCDweb/addToAndShowCart.do [R] > > > > If I submit a form to the posicart.cgi URL using POST it Does get > > rewritten and passed on.. but as a GET! Thus all my parameters are > > lost. > > See: > http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html > > You can't really redirect POST requests reliably. Instead, why don't > you do an internal redirect (remove the [R]), and then apache will > handle everything. > > Joshua. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org