Dear Community;
I am trying to make an HTTP GET request based on this code. It works fine but I need to adapt that to fit it in my code. I need to pass some arguments to the request, and I don't know-how.
The goal is to send a Telegram message using the Telegram BOT API. The entire URL would be: "">api.telegram.org/.../sendMessage, I mean if you copy and paste that in a web browser the message is sent.
I have some code written in Python to send that message, and this is what I have tried so far in C:
"GET / HTTP/1.1\r\nHost: api.telegram.org/.../sendMessageMYCHATDID&text=HELLOFROMNRF9160\r\nConnection: close\r\n\r\n";
But does not work. Please, can anyone tell how are parameters specified in C to use HTTP GET requests?
Thanks in advance.