I have a Sercomm camera that supports pushing, although this consists of sending a long stream of media to some URL. I created an HTTProvider to listen to the data, with a filter of *. However, the camera is not sending a proper HTTP message. When the server runs, and the camera sends data, I get:
02011-10-10 17:24:23,747 [VHostHandler._defaultVHost_.71] DEBUG - open
02011-10-10 17:24:23,760 [VHostHandler._defaultVHost_.71] INFO - handshake0: 212
02011-10-10 17:24:23,832 [VHostHandler._defaultVHost_.73] INFO - handshake0: 539
02011-10-10 17:24:23,832 [VHostHandler._defaultVHost_.73] INFO - handshake0: 589
02011-10-10 17:24:23,833 [VHostHandler._defaultVHost_.73] INFO - handshake0: 2037
02011-10-10 17:24:23,851 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[1]: length:1948
02011-10-10 17:24:23,851 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:412
02011-10-10 17:24:23,851 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:1860
02011-10-10 17:24:23,852 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:3308
02011-10-10 17:24:23,852 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:4756
02011-10-10 17:24:23,852 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:6204
What I would like to do is catch the stream as soon as it is connected, and do the parsing myself. I’m not sure which API calls I can use to do this, since it looks like HTTProviders only handle actual HTTP data. Perhaps some way to hook into the “handshake”? Any suggestions?