- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page