curl-library
Re: How do I correlate two responses
From: Michal Marek <mmarek_at_suse.cz>
Date: Wed, 27 Feb 2008 13:57:20 +0100
Date: Wed, 27 Feb 2008 13:57:20 +0100
Vijay wrote:
> Am posting two http request(same URL text), from different threads.
> Am getting http response but how do I correlate which response is for which
> request.
And you're using the same write callback, right? Then you want to pass
some context information to the callback by setting CURLOPT_WRITEDATA.
See http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTWRITEDATA
hth,
Michal
Received on 2008-02-27