Additional HTTP headers?

4 views
Skip to first unread message

Ivan

unread,
Sep 12, 2011, 11:58:00 AM9/12/11
to unitt-project
Hi guys,

I have a question regarding the use of additional HTTP headers in the
handshake initial request. Currently, it's not possible to add any
additional headers as far as I can seen from the code in the
NetworkSocket class (version 0.9.1.1 of the Java library). Do you plan
to make this part (WebSocketConnectConfig) a bit more flexible by
allowing the use of random HTTP headers (say for example
Authorization)?

Cheers,
Ivan

Josh Morris

unread,
Sep 13, 2011, 10:58:38 AM9/13/11
to unitt-project
That is a great idea! I will put it into both clients!


Josh

Ivan

unread,
Sep 28, 2011, 5:04:29 AM9/28/11
to unitt-project
Hi Josh,

I am glad you like my proposition. Is there any progress on that
direction for the next release and/or when can we expect it? I don't
want to be pushy but just want to know if I will be able to use your
client or search for a workaround.

Cheers,
Ivan

Josh Morris

unread,
Sep 28, 2011, 5:46:23 PM9/28/11
to unitt-project
I have already refactored the iPhone client to use the same connect
config class. Now all I have to do is add the headers to it. There are
one or two bug fixes that are being made as well. I expect to have it
out this weekend.

Josh Morris

unread,
Oct 2, 2011, 9:49:55 PM10/2/11
to unitt-project
Both clients now support supplying your own headers in the config. It
is a simple list and will be applied in order to the handshake. You
want to avoid using the web socket specific headers as they will be
duplicated in the request then. Let me know if this meets your need.
If it does, I will generate a new release from the updated code in
SVN. :)
Reply all
Reply to author
Forward
0 new messages