How do I send a JSON data with libwebsockets C library?
I've installed and tried the example codes, but I couldn't see any example on how to send data to localhost:someport, simply. Any help will be greately appreciated.
Here is the website of libwebsockets: http://libwebsockets.org/trac/libwebsockets
Here is the test-client.c file : http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/test-server
Any help will be greately appreciated.
I guess here is your example http://martinsikora.com/libwebsockets-simple-websocket-server
the author opens localhost server and connecting to it with safari.
Here is a sample for HTTP client in C if you want connect with C.
client
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With