[FASTCGI] apache2 mod-fastcgi?

Shaun Savage savages at mozapps.com
Wed Jul 14 01:38:08 EDT 2010


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

 The problem is
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


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?


More information about the FastCGI-developers mailing list