Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 66295 invoked from network); 9 Feb 2007 14:59:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2007 14:59:20 -0000 Received: (qmail 99227 invoked by uid 500); 9 Feb 2007 14:59:27 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 99203 invoked by uid 500); 9 Feb 2007 14:59:26 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 99194 invoked by uid 99); 9 Feb 2007 14:59:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2007 06:59:26 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [166.70.186.42] (HELO onyx.sharktooth.org) (166.70.186.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Feb 2007 06:59:15 -0800 Received: from jlewis4.provo.novell.com ([137.65.62.53]) by onyx.sharktooth.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HFX7j-000FqJ-O6 for modules-dev@httpd.apache.org; Fri, 09 Feb 2007 07:53:25 -0700 Message-ID: <45CC8CE2.9030309@joe-lewis.com> Date: Fri, 09 Feb 2007 08:01:54 -0700 From: Joe Lewis User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: modules-dev@httpd.apache.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 137.65.62.53 X-SA-Exim-Mail-From: joe@joe-lewis.com X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on onyx.sharktooth.org X-Spam-Level: Subject: Re: How to retrieve the posted variables using the apache module... X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on onyx.sharktooth.org) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.7 Devender Reddy wrote: > Hi, > > I am writing an apache module in C and I am facing some problem while > retreiveing the POST elements data. [snip] > > Now I have to write one apache module in C, such that, I can get the > data of name, upload file name and the hidden variable. Are you sure you need a module and not a perl or php script? If you NEED an extension for apache, read on. > > I am assuming that these values are stored in the request_rec > structure. I dumped all the elements in this structure, but I couldn't > find the information. So it would be great, if you can help in this. Incoming HTTP headers are stored in the request_rec->headers_in apr_table. You can write a filter that grabs POST data before any other module gets it if you needed to alter the data. If you don't need to alter the data, you probably don't want an apache extension, just a standard CGI program. > > I know this is a pretty simple question, but this one seems to be a > tough for me as I am new to this area. We'll help as far as we are allowed to by list etiquette. Joe -- Joseph Lewis "Divide the fire, and you will sooner put it out." - Publius Syrus