You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Wim Kerkhoff <wi...@nyetwork.org> on 2002/05/30 17:19:27 UTC

empty %fdat

In the archives, this thread discuss why %fdat is empty when GET arguments are
passed to a page.

I've run up a situation where GET works fine until a POST is done. As soon as
one form is POSTed, then GET stops working. It appears that Apache
is somehow coming up with a CONTENT_LENGTH somewhere. I can duplicate it using
telnet and sending just this header:

GET http://localhost/gradeone/courses/edit.html?Id=14 HTTP/1.0

If I add a Content-Length header, then %fdat works again for GET:

Content-Length: 0

Is the only fix for this to upgrade? Right now I've changed my forms from POST
to GET, but that's not the preferred solution...

I'm using the Apache/mod_perl/Embperl binaries from
ftp://theoryx5.uwinnipeg.ca/pub/other/perl-win32-bin-0.7.exe on NT4.

That's using slightly older versions of Apache/mod_perl/Embperl. Anyone have
recommendations on newer binaries that work?

Wim

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: empty %fdat

Posted by Gerald Richter <ri...@ecos.de>.

> In the archives, this thread discuss why %fdat is empty when GET arguments
are
> passed to a page.
>
> I've run up a situation where GET works fine until a POST is done. As soon
as
> one form is POSTed, then GET stops working. It appears that Apache
> is somehow coming up with a CONTENT_LENGTH somewhere.

That's a bug in mod_perl under windows, which doesn't resets the
environement correctly. Newer version of Embperl doesn't use the
CONTENT_LENGTH from the environement anymore, when running under mod_perl,
so it works with newer versions.

>
> Is the only fix for this to upgrade?

Yes

>
> I'm using the Apache/mod_perl/Embperl binaries from
> ftp://theoryx5.uwinnipeg.ca/pub/other/perl-win32-bin-0.7.exe on NT4.
>
> That's using slightly older versions of Apache/mod_perl/Embperl. Anyone
have
> recommendations on newer binaries that work?
>

I would suggest to use ActiveState Perl and the ppm packages Randy has made.
The binary distribution you mentioned above is from times when ActiveState
Perl and mod_perl didn't work correctly together. Nowadays ActiveState is
the best choise and the only that is maintained in binary form.

Gerald



-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org