is there a way to send a discord webhook message without external libraries? I searched a lot but couldn't find any, I hope someone can help.
Asked
Active
Viewed 693 times
0
-
1Sure, just open a TCP socket connection to the server and send a correctly-formatted HTPP request. – Quimby Mar 23 '21 at 09:19
-
1Check the HTTP [examples](https://www.boost.org/doc/libs/1_75_0/doc/html/boost_asio/examples/cpp11_examples.html) with Asio. – karastojko Mar 23 '21 at 09:22
-
ah, idk how tcp to send an http request, do you know any tutorial or anything that might help me – Funny Bunny Mar 23 '21 at 09:22
-
oh thank you @karastojko and Quimby – Funny Bunny Mar 23 '21 at 09:23
-
[Here](https://stackoverflow.com/questions/22077802/simple-c-example-of-doing-an-http-post-and-consuming-the-response) is all you need, just change the content. – Quimby Mar 23 '21 at 09:24
-
definitely checking that out :thumbsup: – Funny Bunny Mar 23 '21 at 09:28
-
You will probably need HTTPS. You're strongly recommended to use a library at least for the S part (TLS). – user253751 Mar 23 '21 at 10:21
-
why would you not want to use an external library? I would recommend looking into them for example: https://dpp.dev/classdpp_1_1webhook.html – braindigitalis Oct 09 '21 at 23:13