You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Joshua Chamas <jo...@chamas.com> on 2001/07/10 07:28:17 UTC
Re: ASP.pm and multipart/form .. error
ivan wrote:
>
> hi there ,
>
> I encoutred a problem with ASP.pm (ver.2.17) and multipart form what is
> happening is that when I try to use "file" fields I get something like this
> into the log
>
> [Mon Jul 9 23:20:22 2001] [error] [client 192.168.0.5] Invalid method in
> request -----------------------------7d11b8668d0668
> [Mon Jul 9 23:20:41 2001] [error] [client 192.168.0.5] Invalid method in
> request -----------------------------7d13c1268d0668
> [Mon Jul 9 23:21:41 2001] [error] [client 192.168.0.2] Invalid method in
> request -----------------------------7d17811a20
>
> if the form is normal (w/o enctype="multipart/form-data" ) I'm getting
> normally data into $Request.. nothing is crashing just I'm getting nothing
> into $Request collection...
>
Can you get the ./site/eg/file_upload.asp example working from
the distribution? If so, see what's different about your script.
I believe I'm running the same Apache + modperl now too, and I
have never seen the problem you report, Apache 1.3.20, mod_perl 1.25
BTW, from the error, it doesn't look like it has to do with Apache::ASP.
Maybe someone from the modperl list will give you some better info
specific to modperl.
-- Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
Re: [CGI.pm] ASP.pm and multipart/form .. error
Posted by raptor <ra...@unacs.bg>.
hi again,
I've made some tests and debuging, the problem seems to be in CGI module...
first of all in eg/file_upload.asp this :
print $q->start_multipart_form();
returns this :
<FORM METHOD="" ENCTYPE="multipart/form-data">
do U see no POST (the interesting thing is that $r->method returns GET in
this case i didn't knowed that :") ).. even when I make it manualy and put
debuging code into $Request object multipart handling
............
if($@) {
$self->{asp}->Error("can't use file upload without CGI.pm:
$@");
} else {
my %form;
my $q = $self->{cgi} = new CGI;
$self->{debug} = '-->'.$q->param('xxx');# <=================
there is one more text field in the form named 'xxx'
for(my @names = $q->param) {
my @params = $q->param($_);
......
I get nothing.... into $$Request{debug}
SO CAN SOMEONE TELL ME FROM WHERE I CAN GET CGI with LOWER VESRION THAN 3.02
:"(
Thanx alot
=====
iVAN
raptor@unacs.bg
=====
> ivan wrote:
> >
> > hi there ,
> >
> > I encoutred a problem with ASP.pm (ver.2.17) and multipart form what is
> > happening is that when I try to use "file" fields I get something like
this
> > into the log
> >
> > [Mon Jul 9 23:20:22 2001] [error] [client 192.168.0.5] Invalid method
in
> > request -----------------------------7d11b8668d0668
> > [Mon Jul 9 23:20:41 2001] [error] [client 192.168.0.5] Invalid method
in
> > request -----------------------------7d13c1268d0668
> > [Mon Jul 9 23:21:41 2001] [error] [client 192.168.0.2] Invalid method
in
> > request -----------------------------7d17811a20
> >
> > if the form is normal (w/o enctype="multipart/form-data" ) I'm getting
> > normally data into $Request.. nothing is crashing just I'm getting
nothing
> > into $Request collection...
> >
>
> Can you get the ./site/eg/file_upload.asp example working from
> the distribution? If so, see what's different about your script.
> I believe I'm running the same Apache + modperl now too, and I
> have never seen the problem you report, Apache 1.3.20, mod_perl 1.25
>
> BTW, from the error, it doesn't look like it has to do with Apache::ASP.
> Maybe someone from the modperl list will give you some better info
> specific to modperl.
>
> -- Josh
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org
[Solved] ASP.pm and multipart/form .. error
Posted by raptor <ra...@unacs.bg>.
hi,
I moved to CGI.pm 2.74 and everything is OK now :")
So be aware that u may have problems with the following config :
RedHat 7.1 + Apache 1.3.20/mod_perl 1.25, ASP.pm, CGI ver 3.x
CGI 3.01 even gives error on /compilation test.
CGI 3.02 doesn't give this error
HtH
=====
iVAN
raptor@unacs.bg
=====
Re: [CGI.pm] ASP.pm and multipart/form .. error
Posted by raptor <ra...@unacs.bg>.
hi again,
I've made some tests and debuging, the problem seems to be in CGI module...
first of all in eg/file_upload.asp this :
print $q->start_multipart_form();
returns this :
<FORM METHOD="" ENCTYPE="multipart/form-data">
do U see no POST (the interesting thing is that $r->method returns GET in
this case i didn't knowed that :") ).. even when I make it manualy and put
debuging code into $Request object multipart handling
............
if($@) {
$self->{asp}->Error("can't use file upload without CGI.pm:
$@");
} else {
my %form;
my $q = $self->{cgi} = new CGI;
$self->{debug} = '-->'.$q->param('xxx');# <=================
there is one more text field in the form named 'xxx'
for(my @names = $q->param) {
my @params = $q->param($_);
......
I get nothing.... into $$Request{debug}
SO CAN SOMEONE TELL ME FROM WHERE I CAN GET CGI with LOWER VESRION THAN 3.02
:"(
Thanx alot
=====
iVAN
raptor@unacs.bg
=====
> ivan wrote:
> >
> > hi there ,
> >
> > I encoutred a problem with ASP.pm (ver.2.17) and multipart form what is
> > happening is that when I try to use "file" fields I get something like
this
> > into the log
> >
> > [Mon Jul 9 23:20:22 2001] [error] [client 192.168.0.5] Invalid method
in
> > request -----------------------------7d11b8668d0668
> > [Mon Jul 9 23:20:41 2001] [error] [client 192.168.0.5] Invalid method
in
> > request -----------------------------7d13c1268d0668
> > [Mon Jul 9 23:21:41 2001] [error] [client 192.168.0.2] Invalid method
in
> > request -----------------------------7d17811a20
> >
> > if the form is normal (w/o enctype="multipart/form-data" ) I'm getting
> > normally data into $Request.. nothing is crashing just I'm getting
nothing
> > into $Request collection...
> >
>
> Can you get the ./site/eg/file_upload.asp example working from
> the distribution? If so, see what's different about your script.
> I believe I'm running the same Apache + modperl now too, and I
> have never seen the problem you report, Apache 1.3.20, mod_perl 1.25
>
> BTW, from the error, it doesn't look like it has to do with Apache::ASP.
> Maybe someone from the modperl list will give you some better info
> specific to modperl.
>
> -- Josh
[Solved] ASP.pm and multipart/form .. error
Posted by raptor <ra...@unacs.bg>.
hi,
I moved to CGI.pm 2.74 and everything is OK now :")
So be aware that u may have problems with the following config :
RedHat 7.1 + Apache 1.3.20/mod_perl 1.25, ASP.pm, CGI ver 3.x
CGI 3.01 even gives error on /compilation test.
CGI 3.02 doesn't give this error
HtH
=====
iVAN
raptor@unacs.bg
=====
---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org