You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edited the websocket URL in foo.c to be a valid websocket server. wss://ws.postman-echo.com/raw works, ws://localhost:8080 works as well, with websocat being invoked as websocat -s 8080
cloned curl master, moved foo.c into root folder
cmake -DENABLE_WEBSOCKETS=on
make
cc -L lib/ foo.c -lcurl
LD_LIBRARY_PATH=lib/ ./a.out
I expected the following
some kind of ping-pong demo, or a hanging connection, depending on which websocket server is being used.
instead the program immediately quits with this after sending the initial HTTP headers:
ws: curl_ws_recv returned 81, received 0
in the real-world application that is built based on that example code, I get (just posting the strerror for searchability):
I thought this was related to #11443, so I checked curl 7 as well. On tag curl-7_88_1 (046209e), foo.c hangs instead, though websocket.c does not exist on that commit at all anyway
operating system
Ubuntu 23.10
The text was updated successfully, but these errors were encountered:
I did this
foo.c
foo.c
to be a valid websocket server.wss://ws.postman-echo.com/raw
works,ws://localhost:8080
works as well, with websocat being invoked aswebsocat -s 8080
foo.c
into root foldercmake -DENABLE_WEBSOCKETS=on
make
cc -L lib/ foo.c -lcurl
LD_LIBRARY_PATH=lib/ ./a.out
I expected the following
some kind of ping-pong demo, or a hanging connection, depending on which websocket server is being used.
instead the program immediately quits with this after sending the initial HTTP headers:
in the real-world application that is built based on that example code, I get (just posting the strerror for searchability):
curl/libcurl version
git sha 376cd67
I thought this was related to #11443, so I checked curl 7 as well. On tag
curl-7_88_1
(046209e),foo.c
hangs instead, thoughwebsocket.c
does not exist on that commit at all anywayoperating system
Ubuntu 23.10
The text was updated successfully, but these errors were encountered: