Ok, I've had some time now to try to track it down. I've tried 1.3.0 and 1.3.1 and
received the same problem. So I figured it has to be something else. I figured I stick
with 1.3.1 while trying to figure out this problem. Again, the problem is if I place a
"enctype='multipart/form-data' into a form tag, fdat will be completely empty. This is
the packages Embperl-1.3.1 finds when I build it.
----
Build with support for Apache mod_perl?(y/n) [y]
Use ../apache_1.3.12/src as Apache source(y/n) [y]
Will use /usr/local/pack/installs/apache_1.3.12/src for Apache Headers
Apache Version Server version: Apache/1.3.12 (Unix)
+ found mod_ssl
Syntax OK
Test start /usr/local/pack/installs/apache_1.3.12/src/httpd
Test httpd will run as user nobody and group root
Test httpd will listen on port 8531
Found mod_perl Version 1.2401
Found LWP::UserAgent Version 1.73
Found HTML::HeadParser Version 2.14
Found Apache::Session Version 1.53
Found File::Spec Version 0.82
Found CGI Version 2.752
Checking if your kit is complete...
Looks good
Writing Makefile for HTML::Embperl
----
It also passes all of it's test
----
All test have been passed successfully!
----
After placing some debug messages, around line 890 of Embperl.pm, I get ..
----
[30606]REQ: Embperl 1.3.1 starting... Tue Mar 6 21:44:10 2001
[30606]REQ: No Safe Eval All Opcode allowed mode = mod_perl (3)
[30606]REQ: Package = HTML::Embperl::DOC::_1
[30606]TAB: get TabRow = 0, Used = 5
############################## HERE
Dumper
############################## HERE
[30606]Formdata... length = 0
[30606]Using APACHE for output...
----
from
----
if ($@ || !$cgi)
{
$r -> logerror (rcCGIError, $@) ;
$@ = '' ;
}
else
{
print LOG "############################## HERE\n";
@ffld = $cgi->param;
print LOG "Dumper " . Dumper( @ffld ) . "\n";
print LOG "############################## HERE\n";
my $params ;
foreach ( @ffld )
{
# the param_fetch needs CGI.pm 2.43
#$params = $cgi->param_fetch( $_ ) ;
$params = $cgi->{$_} ;
----
Any known problems with Embperl 1.3.1 and CGI 2.752? Would optimzing Perl or Apache
optimze the values away? I used "-O3 -mcpu=pentiumpro -march=pentiumpro -ffast-math
-fomit-frame-pointer" to compile Perl and Apache.
Any help would be most appreciated,
John
Thus spake G.Richter ([EMAIL PROTECTED]):
> >
> > IMHO there was a problem that in Embperl.pm is ONLY conditional
> > $ENV{'CONTENT_TYPE'}=~m|^application/x-www-form-urlencoded|
> > but should be
> > $ENV{'CONTENT_TYPE'}=~m|^multipart/form-data| too.
> >
>
> It's viceversa. Only $ENV{'CONTENT_TYPE'}=~m|^multipart/form-data| is in
> now, because only multipart/form-data is handled by CGI.pm, while all other
> sort of data is handled by the C part of Embperl.
>
> I use Embperl 1.3.1 with both sorts of forms and it works without problems
>
> Gerald
--
John Walstra CNET Networks
Senior Software Developer, Jack Of All Trades 300 Park Blvd, Suite 105
mailto:[EMAIL PROTECTED] Itasca, IL 60143-4914
Phone: 630.438.7000 x1304 Fax: 630.775.0555
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]