-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading the headers in a websocket client #4
Comments
Hi raffaeler, The API I don't think we currently expose an API to access the HTTP headers. However, the library we build on (websocket++) does have this functionality: This will require some source code changes, but a clean API for fetching the underlying |
Hi ras,
While I could make a pull request for exposing the response headers, it would take more time (as I don't know anything about the details of the implementation, nor I would be able to build for all the supported platforms. |
|
Hi. Did anything come of this? I would also like to get at the websocket_client response header somehow ... |
Nope. You have three choices:
|
Upgrade to v2.10.7
Hi,
I am trying to read the headers right after the connect() in a websocket client app (rest-sdk 2.6).
auto config = client->config();
auto headers = config.headers();
The connect was successful, but the headers are always empty even if I can see them from wireshark.
As an additional information, I can't even see the server name (by default I understood that it should show up).
auto server_name = config.server_name();
My final target is to access the "Sec-WebSocket-Accept" string which should be used as an unique identifier of the connection.
Thank you
The text was updated successfully, but these errors were encountered: