cURL / Mailing Lists / curl-library / Single Mail


Re: HTTP 1.1 POST and response packet formation using libcurl

From: Lijo Antony <>
Date: Wed, 03 Oct 2012 10:33:58 +0400

On 10/03/2012 07:30 AM, JALINDAR wrote:
> Hi All,
> I am working on project where I suppose to send HTTP1.1 POST request to
> the server and server will response with code which i want to abstract
> for further processing.
> I have seen postit2.c file example in the doc folder in the project
> folder, but is of not much help.
> How to connect body of the packet? I have pointer to the SOAP data which
> i want to send to the server.
> /* Perform the request, res will get the return code */
> res = curl_easy_perform(curl);
> this is the code snap from postit2.c from example folder.
> Here only response status is returned where I want to have complete
> response file.
> Can anybody tell how can I send HTTP 1.1 post packet and get the
> detailed POST response file from server.
> Thanks
> Jalindar
> /*
> */

To have a pleasant experience with libcurl, I suggest to start with It answers your
question and many more that you may soon have.

List admin:
Received on 2012-10-03