Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 75282 invoked from network); 10 Feb 2007 16:37:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2007 16:37:29 -0000 Received: (qmail 75784 invoked by uid 500); 10 Feb 2007 16:37:35 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 75764 invoked by uid 500); 10 Feb 2007 16:37:35 -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 75755 invoked by uid 99); 10 Feb 2007 16:37:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Feb 2007 08:37:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [199.203.54.245] (HELO vl654.host245.netvision.net.il) (199.203.54.245) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Feb 2007 08:37:24 -0800 Received: from [192.168.2.58] (bzq-88-155-11-30.red.bezeqint.net [88.155.11.30]) (authenticated bits=0) by mail1.mirimar.net (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id l1AGarGh027501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 10 Feb 2007 18:36:55 +0200 Message-ID: <45CDF4A7.5090302@beamartyr.net> Date: Sat, 10 Feb 2007 18:36:55 +0200 From: Issac Goldstand Organization: Mirimar Networks User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: How to retrieve the posted variables using the apache module... References: <45CC8CE2.9030309@joe-lewis.com> In-Reply-To: <45CC8CE2.9030309@joe-lewis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Devender, You might want to take a look at libapreq at http://httpd.apache.org/apreq/ It contains an API for getting to the POST variables, including uploaded files. Issac Joe Lewis wrote: > 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