0

I am trying to trigger an event on an embedded device (that runs a web server). This event can only be triggered by accessing a web page (HTTP protocol). So I just need to load a web page (for now I do it simply by copying the url link in my browser) to trigger the event I want (and I don't care about the content of the page).

What is the simplest way to do that in a C++ application running on a Linux (redhat) system ?

Do I have to use sockets ? Or is there a simpler way ?

1

1 Answer 1

3

For my money, libcurl, with its "easy" interface, is the way to go.

Sign up to request clarification or add additional context in comments.

1 Comment

I agree with @cynic. Libcurl is the way to go on this one. Easy to use and very portable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.