apache2 mod-fastcgi?

Shaun Savage <[email protected]> Wed, 14 Jul 2010 13:38:08 +0800
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi

I am trying to write a websocket fastcgi interface.  The problem that I
am having is the websocket request is not a normal http request.
----------------------------------------------------
GET /demo HTTP/1.1
Host: example.com
Connection: Upgrade
Sec-WebSocket-Key2: 12998 5 Y3 1 .P00
Sec-WebSocket-Protocol: sample
Upgrade: WebSocket
Sec-WebSocket-Key1: 4 @1 46546xW%0l 1 5
Origin: http://example.com

^n:ds[4U
--------------------------------------------------
 The problem is
^n:ds[4U
is binary 32 bits. and this does not make it to the fastcgi library,  I
think it is lost in the apache mod-fastcgi module.

I need this data to create the response
-------------------------------------------------

        HTTP/1.1 101 WebSocket Protocol Handshake
        Upgrade: WebSocket
        Connection: Upgrade
        Sec-WebSocket-Origin: http://example.com
        Sec-WebSocket-Location: ws://example.com/demo
        Sec-WebSocket-Protocol: sample

        8jKS'y:G*Co,Wxa

------------------------------------------------
md5 ( f(Key1), f(Key2), binary 32bits)

I was expecting to be able to do a FCGX_GetStr()
but after  the header there is nothing in the buffer stream to read.

any ideas on how to get the binary 32 bits to the fastcgi library?

shaun