curl-library
Re: Simple multiple field get using application/x-www-form-urlencoded
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 27 Sep 2013 15:26:57 +0200 (CEST)
Date: Fri, 27 Sep 2013 15:26:57 +0200 (CEST)
On Fri, 27 Sep 2013, Ulf Samuelsson wrote:
> Want to create a query with multiple fields, and get the result in a C++
> string
>
> Example: "http://www.myserver.com?field=1&field=2&field=3"
>
> The server need the query to be of the form
> "application/x-www-form-urlencoded".
Here's a very simple example showing how to send the POST:
http://curl.haxx.se/libcurl/c/simplepost.html
... and you can combine that with the example showing how to receive the
response back into a memory buffer:
http://curl.haxx.se/libcurl/c/getinmemory.html
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-09-27