Search:
Forum
General C++ Programming
Help with implementing HTTP Queries in C
Help with implementing HTTP Queries in C++
Dec 16, 2015 at 9:24pm UTC
greenleaf800073
(475)
I was wondering how would someone implement a listener for GET and POST in a c++ program. For example:
GET
http://1.2.3.4:5678/action?message=helpme
and
POST
http://1.2.3.4:5678/action
POST Body: {"message":"Thanks for helping"}
Also, if any of you have a simpler way to do this in QtCreator, that would be awesome
Dec 17, 2015 at 1:28pm UTC
greenleaf800073
(475)
Bump?
Dec 17, 2015 at 1:57pm UTC
JLBorges
(13770)
See
http://googolflex.com/wp-content/uploads/2009/07/simpleclient.cpp
For something more elaborate, you may want to use a library.
For instance, libcurl
http://curl.haxx.se/libcurl/
Dec 17, 2015 at 2:07pm UTC
coder777
(8444)
You may take a look at POCO:
http://pocoproject.org/
http://pocoproject.org/docs/Poco.Net.html
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs