curl / Mailing Lists / curl-users / Single Mail
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

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 11 Dec 2023 10:26:19 +0100 (CET)

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.html
Received on 2023-12-11