[Haskell-cafe] Re: Network.CGI.Compat.pwrapper

Björn Bringert bringert at cs.chalmers.se
Wed Feb 14 05:03:06 EST 2007


Gracjan Polak wrote:
> Bjorn Bringert <bringert <at> cs.chalmers.se> writes:
>>> Is there a description what is a *CGI* protocol?
>> Here you go: http://hoohoo.ncsa.uiuc.edu/cgi/interface.html
>>
> 
> I should be more clear: what kind of data does pwrapper expect? Somewhere in the
> middle it needs two handles: one to write and one to read which seem to be
> equivalent to stdin/stdout. But what about environment? How is it transfered, as
> someone ale pointed out pwrapper runs on different machine?

I think your best bet is to read the code, it's not many lines. IIRC, 
pwrapper takes the environment variables from the local environment, 
which is rather useless. If you want a protocol for talking CGI over a 
socket, FastCGI does just that.

/Björn


More information about the Haskell-Cafe mailing list