cURL / Mailing Lists / curl-library / Single Mail

curl-library

Timeout on receiving data from a HTTP POST

From: jessica rearick <jmdaisy516_at_gmail.com>
Date: Tue, 15 Aug 2006 15:04:21 -0400

I am using the a callback function in the following code to receive the
response from a HTTP POST. The majority of the time it works. I have run
into a case where I have not received a response back for some reason, and I
dont know why. Now my process is stuck in a loop waiting for a response.
Is there some option that I can set so that the read will timeout when
trying to recieve the response??

curl_easy_setopt
<http://curl.haxx.se/lxr/ident?i=curl_easy_setopt>(curl_handle,
CURLOPT_WRITEFUNCTION,
WriteMemoryCallback<http://curl.haxx.se/lxr/ident?i=WriteMemoryCallback>);
curl_easy_setopt
<http://curl.haxx.se/lxr/ident?i=curl_easy_setopt>(curl_handle,
CURLOPT_WRITEDATA <http://curl.haxx.se/lxr/ident?i=CURLOPT_WRITEDATA>, (void
*)&chunk);

Thank you in advance
Jessica
Received on 2006-08-15