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

Re: [MacPerl] CGI Related Q



andyk@teleport.com (Andy Kington)
>Has anyone gotten the send partial to work with 505r1m and the new PCGI
>glue? I'm using WebSTAR 1.2.4, newest MacPerl and glue.

Me! Me!

>If no-one has I believe I know why, There is yet another pice of info
>passed from WebSTAR to CGIs, it is connection id (connection_id is an
>increment value).

Connection IDs are handled transparently by the glue.

>print <SEND_PARTIAL>  #tell webstar to keep connection open, multiple parts
>coming

Also handled transparently (i.e., don't write this in your scripts).

>print "that multipart header" some data to connection id with more  #more
>tells webstar more coming
>
>print "regular header" some data to connection id with more # still more comin
g

More is also handled transparently.

>If I'm wrong please tell me, otherwise Matthais could you (or someone) add
>this <<Kcid>> connection_id deal to the ENV. Or maybe it would be easier
>for you to have the full request returned in raw form so this and any other
>additions could be parsed by the CGI.

Parsing by the CGI would be sort of sad given the current (non-) state of 
AppleEvent replying capabilities Perl has.

>BTW I tried your sample send partial script you sent to the list and It
>didn't work.

You're not the first to say so. Two points to note:

 - Partial sends only work with ACGIs, so call your script x.acgi.
 - If you run any CGI script and press Command-L in the information window,
   you'll get a debugging log in a file "MPCGI Log" on the desktop. With
   this log, you can see what events get passed between the programs and 
   maybe figure out what goes wrong.

Matthias

-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html
  "And that's why I am going to turn this world upside down, and make
   of it a fire so *bright* that someone real will notice"
                                -- Vernor Vinge, _Tatja Grimm's World_