chaitanyad chaitanyad - 1 year ago 140
Android Question

method to send httpheaders from android autobahn websocketconnection

I want to send user agent as an extra header.
This is available in Eric Butlers library
Wanted to go with autobahn though.
Any ideas?

Answer Source

You can set additional HTTP headers to be sent during the initial opening WebSocket handshake using the headers parameter to conenct - pls see here.

This probably is missing from the interface definition (a bug), but should work nevertheless.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download