[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] 32k limit with CGI and WebSTAR 3.0



I've read through the MacPERL archives and found various information about
a 32k limit with Apple Events and/or WebStar. From the tone of the list, it
sounds like this issue has been gone over many times.

I found a fairly recent posting on this topic::

     I have a Perl 5.2.0r4 CGI script that returns HTML to WebSTAR 3.0.

     If the result is less than 32k, the entire HTML result makes it to the
     client web browser.

     If the result is greater than 32k (say 40k), WebSTAR only receives
     32768 bytes, and so the entire HTML result does not make it to the
     client web browser.

     Is this a bug in MacPerl, "CGI Script" Perl extension, or WebSTAR.

     What workaround would you recommend that I make.

This is about the same question I was going to ask, except that I'm using
Perl 5.1.5r4.

For specifics, the CGI is theWWWAdmin part of the (in)famous WWWBoard program.

Here's some follow-ups to the original post:

     If I remember correctly, this is a problem with AppleEvent size
     limitations. Correct me if I'm wrong...?

-----------

     I also thought that maybe it was an issue with returning data via the
     AppleEvent response. But....

     I just tried the test with WebSTAR 2.1, and the entire 41k was sent.
     So maybe this is a bug with WebSTAR 3.0.

-----------

     I think it's a WebSTAR thing.  I don't know if this has changed
     in WebSTAR 3 but in version 2.x there's a 32K limit on POST
     arguments.

-----------

     I figured out the problem. CGI's support only 32k results to WebSTAR.
     But...ACGI's support more than 32k.

     I made the Suffix setting to have ".PL" (for MacPerl) to be an ACGI.

     Now I am having a problem making the MacPerl ACGI work like an ACGI.
     Sending 2 queries to the same MacPerl ACGI script will cause both to
     fail.

------------

I did not find a specific resolution to his question. Where is the problem
located, in Apple Events, the CGI part of MacPERL or in WebSTAR? Also,
what's this about running MacPERL CGI's as ACGI's? Will it really work?

Has anybody else run WWWAdmin on large files and run into this problem? As
long as the file is small enough (about 23000 bytes) WWWAdmin works like a
charm. If the file gets too big, I run into the 32k limit on returned HTML.

Thanks,
Marcel



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch