cURL / Mailing Lists / curl-library / Single Mail


Simple multiple field get using application/x-www-form-urlencoded

From: Ulf Samuelsson <>
Date: Fri, 27 Sep 2013 14:30:41 +0200

Want to create a query with multiple fields, and get the result in a C++

Example: ""

The server need the query to be of the form

Tried using cURLpp

             curlpp::Forms formParts;
curlpp::FormParts::Content("Type", "1"));
curlpp::FormParts::Content("DeviceName", "CGNS_emagii"));
curlpp::FormParts::Content("NodeType", "9700"));
             request.setOpt(new curlpp::options::HttpPost(formParts));

But that generates a multiple form query, and not "x-www-form-urlencoded"
so the server will give an empty reply.

Have been looking for a good example, but have not yet found it.
A libcurl or curlpp solution will do for me?

Ulf Samuelsson

List admin:
Received on 2013-09-27