cpr icon indicating copy to clipboard operation
cpr copied to clipboard

Feature request: Websocket and example

Open pramitbiswas opened this issue 5 years ago • 7 comments

  1. Does this support websocket?
  2. Simple example code for different types of requests in an example folder.

pramitbiswas avatar Aug 06 '20 05:08 pramitbiswas

No, cpr currently does not support websockets. I also do not know if cpr ever will support those, since I'm not aware that curl supports those either. @pramitbiswas Do you know more about this?

COM8 avatar Aug 06 '20 09:08 COM8

You can check this link for accessing WebSocket using curl. Other useful links: https://github.com/vi/websocat https://stackoverflow.com/a/47860810/4464045

I do not have any experience as such.

pramitbiswas avatar Aug 12 '20 18:08 pramitbiswas

libcurl 7.86.0 comes with initial websocket support, is there any plan to support websocket now? @COM8

uwydoc avatar Oct 27 '22 01:10 uwydoc

In theory yes, but right now it is still marked as experimental .

COM8 avatar Oct 27 '22 06:10 COM8

ok, thanks.

uwydoc avatar Oct 27 '22 06:10 uwydoc