cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to get/retrieve data return after doing a post request ?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 12 Nov 2003 13:02:16 +0100 (CET)

On Wed, 12 Nov 2003, Ryan Luyao wrote:

> I tried to figure out the CURLOPT_WRITEDATA and CURLOPT_WRITEFUNCTION but to
> no avail.

How did you use them and in what way didn't they satisfy you?

> Can anybody help me how i can process or save the data after i do POST
> request so that i can save them to a variable and parse important bits from
> them later.

If you're talking about getting the response data, CURLOPT_WRITEFUNCTION is
the answer.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
Received on 2003-11-12