Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 18034 invoked from network); 12 Sep 2003 14:27:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Sep 2003 14:27:27 -0000 Received: (qmail 34210 invoked by uid 500); 12 Sep 2003 14:27:22 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 34198 invoked by uid 500); 12 Sep 2003 14:27:22 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 34184 invoked from network); 12 Sep 2003 14:27:22 -0000 Received: from unknown (HELO exchange-slc.ut.ovid.com) (198.242.51.243) by daedalus.apache.org with SMTP; 12 Sep 2003 14:27:22 -0000 Received: by exchange-slc.ut.ovid.com with Internet Mail Service (5.5.2653.19) id ; Fri, 12 Sep 2003 08:28:54 -0600 Message-ID: <555F2B7B278B5348A28F665E6B0E43A4021AF9FE@exchange-slc.ut.ovid.com> From: Douglas Webb To: 'Joe Schaefer' , apreq-dev@httpd.apache.org Subject: RE: POSTing non-standard content type? Date: Fri, 12 Sep 2003 08:28:53 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks; switching to Apache->request for my POST requests not only took care of the error message, but also exposed a bug where I was trying to use param() during handling of the POST. Doug. -----Original Message----- From: Joe Schaefer [mailto:joe+gmane@sunstarsys.com] Sent: Friday, September 12, 2003 9:32 AM To: apreq-dev@httpd.apache.org Subject: Re: POSTing non-standard content type? Douglas Webb writes: > Hi. > I'm building an internal service using Apache/mod_perl, and one of the > functions I want to support is POSTing a request where the body is an > xml document. (Sounds like SOAP, but it's not an RPC-kind of thing.) > > I'm able to use Apache::Request::read to get the request body, In 1.X, the read() method is inherited from the underlying Apache object. Can you get along without using Apache::Request, and just use $r = Apache->request? > but my error log is full of this message: [libapreq] unknown > content-type: `application/x-ovid-blah' > > I looked at the libapreq code, and it generates this error for > anything but application/x-www-form-urlencoded or multipart/form-data. In 2.X, libapreq for apache is implemented as a passive input filter with a user-definable parser (the builtin parsers just serve as overridable defaults). The C API is designed to be much more accommodating in situations like yours, although the Apache::Request perl glue doesn't expose these additional features just yet. -- Joe Schaefer This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, forwarding or otherwise distributing or taking any action in reliance on the contents of this information is strictly prohibited.