From owner-freebsd-questions Wed Mar 12 2:59:10 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9566837B43A for ; Wed, 12 Mar 2003 02:59:05 -0800 (PST) Received: from vega.blacktrap.net (vega.blacktrap.net [194.9.222.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6171643F93 for ; Wed, 12 Mar 2003 02:59:04 -0800 (PST) (envelope-from oli@vega.blacktrap.net) Received: from vega.blacktrap.net (localhost [127.0.0.1]) by vega.blacktrap.net (8.12.6/8.12.6) with ESMTP id h2CAxWfc029483; Wed, 12 Mar 2003 11:59:32 +0100 (CET) (envelope-from oli@vega.blacktrap.net) Received: (from oli@localhost) by vega.blacktrap.net (8.12.6/8.12.6/Submit) id h2CAxWCL029482; Wed, 12 Mar 2003 11:59:32 +0100 (CET) Date: Wed, 12 Mar 2003 11:59:32 +0100 From: Olivier Dony To: Matthew Faircliff Cc: freebsd-questions@freebsd.org Subject: Re: POST data not available in cgi perl scripts Message-ID: <20030312105931.GA29315@vega.blacktrap.net> References: <20030311232159.GA11475@vega.blacktrap.net> <20030311232642.GA12056@vega.blacktrap.net> <20030312124844.GA44586@prana> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030312124844.GA44586@prana> User-Agent: Mutt/1.4i X-Spam-Status: No, hits=-29.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Mar 12, 2003 at 12:48:44PM +0000, Matthew Faircliff wrote: > Hello, Hiya, > > Have you tried using libapreq? I find that it is a superior method of transmitting POST data. Find it in /usr/ports/www/p5-libapreq. > $my_posted_var = $r->parms{'my_var'}; > Nope haven't tried it yet, because using CGI.pm was working for me on my other servers, I never felt the need for a more clever thing, but I'll give it a try for sure, this looks great. > Also, why not look into Mason (like emb_perl, only better). It handles POST data like a charm. I'll have a look at it right now too. But anyhow I don't think those will solve the problem because the POST data coming from the HTTP request doesn't even reach my script, although it has been working all the time on my previous servers. So I guess the problem is not in my method of getting/parsing the data, but in the process between the client's request and the script getting it. And PHP scripts get the POST data fine, argh :( But thanks a lot for your suggestions, I'll try them as soon as I am done compiling the perl port and re-installing all my perl modules.. Not that there is a chance of it working better, since the system's perl works ok for POST when trying it in the console. But I'm lost so trying anything I haven't yet... Thanks again Matt :) -- Olivier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message