Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 16917 invoked from network); 8 Dec 2006 18:58:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Dec 2006 18:58:29 -0000 Received: (qmail 22519 invoked by uid 500); 8 Dec 2006 18:58:30 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 22504 invoked by uid 500); 8 Dec 2006 18:58:30 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 22493 invoked by uid 99); 8 Dec 2006 18:58:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2006 10:58:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of perrin@elem.com designates 69.13.230.185 as permitted sender) Received: from [69.13.230.185] (HELO heme.elem.com) (69.13.230.185) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Dec 2006 10:58:20 -0800 Received: (qmail 25445 invoked by uid 1160); 8 Dec 2006 18:57:59 -0000 Received: from static-70-107-216-64.nycmny.east.verizon.net (HELO [10.0.1.201]) (70.107.216.64) (smtp-auth username perrin, mechanism login) by heme.elem.com (qpsmtpd/0.32) with ESMTP; Fri, 08 Dec 2006 10:57:59 -0800 Message-ID: <4579B5B4.7090906@elem.com> Date: Fri, 08 Dec 2006 13:57:56 -0500 From: Perrin Harkins User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: cfaust-dougot CC: Fred Moyer , modperl@perl.apache.org Subject: Re: Apache2::Upload and End of file found error Part 2 References: <337EB977ED442643A70817574C83BA770FF276@exchback1.pub.prevare.com> <337EB977ED442643A70817574C83BA770FF278@exchback1.pub.prevare.com> <4577C3B4.7090903@redhotpenguin.com> <337EB977ED442643A70817574C83BA770FF279@exchback1.pub.prevare.com> <45783C45.7060408@redhotpenguin.com> <337EB977ED442643A70817574C83BA770FF27A@exchback1.pub.prevare.com> In-Reply-To: <337EB977ED442643A70817574C83BA770FF27A@exchback1.pub.prevare.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org cfaust-dougot wrote: > >>Argh you're right - since it was created in the global hash I thought it > >>was part of the globals and didn't look closely enough. > Yep, I was just making sure.. That makes it even more of a mystery > though, don't you think? Well, although the CGI object is not a global, you are keeping the HTTP data in a global, %form_data. > Since then I went though created a new CGI object within that sub > whenever I've needed it, and it seems to work. The problem only appears > to happen if a new CGI object is created within the handler or within a > sub that is called from the handler and it only effects upload?????? > Bizzare, but I'm trying to move on.. This is probably because CGI.pm is reading all the form input and not leaving it for Apache2::Request to read. > >>You don't need it if you're using Apache::Request though. You can > use Apache::Request_or_ CGI, you don't need to use >>both at the same time. > I'm giving that a shot now, If I can get Apache2::Cookie to work right > and find some way to duplicate CGI.pm's "escape" and "unescape" methods > I won't need CGI.pm at all.. See the docs for porting escape_uri and escape_html from mod_perl 1 here: http://perl.apache.org/docs/2.0/user/porting/compat.html - Perrin