Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: [Question / Feature Request] Sending data within WebSocket connection through curl CLI
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Snusmumr1000 via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 11 Dec 2023 10:43:48 +0100
>
> > I have recently compiled an experimental version of libcurl that enables
> > websockets, and I see that it works well when receiving data.
> >
> > However, I still can't find (or understand) if it is possible to send the
> > data within the established connection.
> >
> > A link to some documentation would be enough.
>
> Sure:
>
> https://curl.se/libcurl/c/curl_ws_send.html
>
> But there are also examples:
>
> https://curl.se/libcurl/c/websocket.html
>
> and
>
> https://curl.se/libcurl/c/websocket-cb.html
>
> Also: the curl-library is the mailing list for libcurl, which should be a
> better place if you have more questions about library stuff.
>
>
Hello Daniel,
Thank you so much for your response.
It's awesome that libcurl has this feature, it is also pretty helpful for
me.
However, my initial question was regarding curl CLI, not regarding the
library itself.
I wonder if curl CLI has such an ability to send WS messages to a server
interactively like in websocat CLI or in any other possible way.
Sorry for possible confusion in previous email,
Tikhon Zaikin
пн, 11 дек. 2023 г. в 10:26, Daniel Stenberg <daniel_at_haxx.se>:
> On Mon, 11 Dec 2023, Snusmumr1000 via curl-users wrote:
>
> > I have recently compiled an experimental version of libcurl that enables
> > websockets, and I see that it works well when receiving data.
> >
> > However, I still can't find (or understand) if it is possible to send the
> > data within the established connection.
> >
> > A link to some documentation would be enough.
>
> Sure:
>
> https://curl.se/libcurl/c/curl_ws_send.html
>
> But there are also examples:
>
> https://curl.se/libcurl/c/websocket.html
>
> and
>
> https://curl.se/libcurl/c/websocket-cb.html
>
> Also: the curl-library is the mailing list for libcurl, which should be a
> better place if you have more questions about library stuff.
>
> --
>
> / daniel.haxx.se
> | Commercial curl support up to 24x7 is available!
> | Private help, bug fixes, support, ports, new features
> | https://curl.se/support.html
>
Date: Mon, 11 Dec 2023 10:43:48 +0100
>
> > I have recently compiled an experimental version of libcurl that enables
> > websockets, and I see that it works well when receiving data.
> >
> > However, I still can't find (or understand) if it is possible to send the
> > data within the established connection.
> >
> > A link to some documentation would be enough.
>
> Sure:
>
> https://curl.se/libcurl/c/curl_ws_send.html
>
> But there are also examples:
>
> https://curl.se/libcurl/c/websocket.html
>
> and
>
> https://curl.se/libcurl/c/websocket-cb.html
>
> Also: the curl-library is the mailing list for libcurl, which should be a
> better place if you have more questions about library stuff.
>
>
Hello Daniel,
Thank you so much for your response.
It's awesome that libcurl has this feature, it is also pretty helpful for
me.
However, my initial question was regarding curl CLI, not regarding the
library itself.
I wonder if curl CLI has such an ability to send WS messages to a server
interactively like in websocat CLI or in any other possible way.
Sorry for possible confusion in previous email,
Tikhon Zaikin
пн, 11 дек. 2023 г. в 10:26, Daniel Stenberg <daniel_at_haxx.se>:
> On Mon, 11 Dec 2023, Snusmumr1000 via curl-users wrote:
>
> > I have recently compiled an experimental version of libcurl that enables
> > websockets, and I see that it works well when receiving data.
> >
> > However, I still can't find (or understand) if it is possible to send the
> > data within the established connection.
> >
> > A link to some documentation would be enough.
>
> Sure:
>
> https://curl.se/libcurl/c/curl_ws_send.html
>
> But there are also examples:
>
> https://curl.se/libcurl/c/websocket.html
>
> and
>
> https://curl.se/libcurl/c/websocket-cb.html
>
> Also: the curl-library is the mailing list for libcurl, which should be a
> better place if you have more questions about library stuff.
>
> --
>
> / daniel.haxx.se
> | Commercial curl support up to 24x7 is available!
> | Private help, bug fixes, support, ports, new features
> | https://curl.se/support.html
>
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-12-11