RTMPT custom headers
Hello!
Please help me with RTMPT. Is there any way I can add custom header for each HTTP request to the server from player?
The point is, I want to forward EVERY HTTP request (POST /fcs/ident2, POST /open/1, POST /idle/session_id/0 and POST /send/session_id/n) from player by Java servlet based on info in these requests. And I can't find a way to put this additional info.
NetConnection.connect("rtmpt://host/servlet", "Custom Info") works but too late because "Custom Info" string is send only on first POST SEND.
NetConnection.addHeader() does not seem to work cause Wireshark did not show me a new header. Or I used this method wrong.
Thank you