Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DFerr9
New Contributor I
1,019 Views

Make a simple Http call (GET or POST) from Linux on Edison ... what library should I be looking at?

Jump to solution

Hi All -

Once again, please excuse my Linux naivté but ... I want to send a hearbeat to my RESTful web service on my laptop from my various Edison bots.

I'd prefer to do this from C++ in Eclipse (as opposed to the Arduino IDE or the XDK) -- for personal reasons. (I'm doing a demo and want to demo the different ways of programming the Edison.)

So, in Linux on the Edison, which library or libraries and calls should I be looking at to send an HTTP POST or GET? (Something like http://MyServer/MyService/Heartbeat http://MyServer/MyService/Heartbeat)

As you can see, I don't even want to get a response. Just want to send an HTTP msg.

Thanks,

- Dave F.

1 Solution
Sergio_A_Intel
Employee
55 Views

Hi,

Have you tried using libcurl library? You can find a similar question to yours here http://stackoverflow.com/questions/1011339/how-do-you-make-a-http-request-with-c httprequest - How do you make a HTTP request with C++? - Stack Overflow .

You can see more information here http://linux.die.net/man/3/libcurl-tutorial libcurl-tutorial(3) - Linux man page

Sergio

View solution in original post

1 Reply
Sergio_A_Intel
Employee
56 Views

Hi,

Have you tried using libcurl library? You can find a similar question to yours here http://stackoverflow.com/questions/1011339/how-do-you-make-a-http-request-with-c httprequest - How do you make a HTTP request with C++? - Stack Overflow .

You can see more information here http://linux.die.net/man/3/libcurl-tutorial libcurl-tutorial(3) - Linux man page

Sergio

View solution in original post

Reply