Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 2154 invoked from network); 23 Aug 2004 14:56:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Aug 2004 14:56:17 -0000 Received: (qmail 69720 invoked by uid 500); 23 Aug 2004 14:55:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 69685 invoked by uid 500); 23 Aug 2004 14:55:37 -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 69660 invoked by uid 99); 23 Aug 2004 14:55:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [132.177.241.80] (HELO blackstar.sr.unh.edu) (132.177.241.80) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 23 Aug 2004 07:55:34 -0700 Received: from [132.177.241.124] (x.sr.unh.edu [132.177.241.124]) (authenticated bits=0) by blackstar.sr.unh.edu (8.12.11/8.12.11) with ESMTP id i7NEtVDi024733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Aug 2004 10:55:31 -0400 From: Philip Collins To: Joshua Slive Cc: users@httpd.apache.org In-Reply-To: References: <1093015693.3816.130.camel@x.sr.unh.edu> Content-Type: text/plain Message-Id: <1093272931.3816.154.camel@x.sr.unh.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 23 Aug 2004 10:55:31 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamd / ClamAV version 0.70rc, clamav-milter version 0.70 X-Virus-Checked: Checked Subject: Re: [users@httpd] unable to POST with mod_include X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Fri, 2004-08-20 at 12:12, Joshua Slive wrote: > On Fri, 20 Aug 2004 11:28:13 -0400, Philip Collins > wrote: > > I am getting the "The requested method POST is not allowed for the URL" > > when I try to post to a shtml file which includes some dynamic CGI > > forms. I tried specifying the limit directive explicitly allowing GET > > POST, to no avail. I did some web searches, and the only solution (that > > is not really a solution) was to change the action of my forms to the > > script the form is intended for. This is not what I really want. For > > example, I have a web site with menus, search form, and footer - all are > > constructed from separate html files - all included in one shtml file. > > The web page loads correctly, then when I click the submit button with > > some search terms, the form does a POST (GET is not an option), and I > > get the error message. mod_include must have some way to do this. If > > not, why not? > > A POST sends data to the script on stdin. SSI pages have no way to read stdin. > > Perhaps what you want is for one of the cgi scripts that you call from > the SSI page to get the input on stdin. But how is apache supposed to > know which one? > > In other words, POST is not supported for SSI pages for good reason. > Perhaps if you explained why you can't use GET we could provide some > other options. I understand what you are saying, but how else are you supposed to embed self submitting POST forms in shtml pages? A self submitting form will submit the form to the current uri. That way the header, menus, body, and footer all appear after the form is submitted. GET forms have to many limitations for many of the pages I work on. Static files should ignore form input, and if there is more then one CGI script on a page, then all scripts should have access to the form inputs. This is how Apache::SSI works. Should there not be an option for mod_include to allow this? How do other people approach this problem? I am trying to offload all structure, and presentation to our HTML coders, and program all the logic using perl scripts. The HTML forms are constructed by the HTML coders with the help of the HTML::Template module. Thanks, Phil > Joshua. > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org -- University Of New Hampshire Morse Hall Room 219 39 College Road Durham, NH 03825-3525 Philip.Collins@unh.edu Ph: (603) 862-7038 Fax: (603) 862-1761 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org