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

Re: [MacPerl] 32k document size limit



+-It all works pretty well. However when more than 32k of data
+-match the user's request, then only 32k text is returned (the rest
+-is clipped off at the end).

This seems to be another instance of the AppleEvent 32k barrier.

In a nutshell: AppleEvents do not reliably pass more than 28, or 32,
or 64K. Different people submit different numbers but the idea is that
you can't just slam the American Heritage through an AppleEvent and
expect it to show up on the other end.

Why do you care about AppleEvents? Because that's how WebSTAR (or
MacHTTP) and MacPerl communicate.

Workarounds:
1) I believe that MacPerl 5.x allows data to be returned in chunks,
   using a server-push construction.
2) Write the data to a file and serve up a "redirect" header, so the
   client's browser requests the data directly via HTTP.
3) Use Frontier instead.


You may wish to search the MacPerl list archive, which I'm sure some
other member of the list has the address of, for past discussions of
this topic. It comes up every three months or so.

--
matt.