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

Re: [MacPerl] cgis with MacPerl 5.07r1



> i've spent most of the day learning about server push and switching
> some cgis from MacPerl 4.1.8 over to MacPerl 5.07r1 (with the
> MPCGI_06Feb96 cgi glue). i've had several cases where the cgi goes in
> an endless loop and won't let me quit.  (sometimes i can't even force
> quit!)

Ack. I hate to preach this stuff on this list, especially since MacPerl
is so great, I'm sorry, but you really should be using Frontier for
this stuff.  It is _soooo_ much easier. One line of code:

data = the chunk of data you want to send
webStar.sendPartial ( data, connectionID, true )

when you are done, all you need to do is:

webStar.sendPartial ( lastBitOfData, connectionID, false )
return ( "" )

> ok and my last realization of the day is that NetPresenz and MacHTTP
> don't do server pushes until they've received all the data.  is this
> true?  is WebStar the only mac server that does server pushes correctly?

I would assume that it is true.

-jon

Jon (no h) S. Stevens        yanni@clearink.com
ClearInk WebMagus      http://www.clearink.com/
finger pgp@sparc.clearink.com for pgp pub key
If that sentence didn't seem to make sense, that's because it didn't.