Re: When using CURLOPT_CONNECT_ONLY, how do you detect EOF?
Date: Mon, 6 Apr 2009 22:49:30 +0200 (CEST)
On Mon, 6 Apr 2009, Richard Lee wrote:
> I'm using curl to set up a connection and then using the curl_easy_send()
> and curl_easy_recv() methods to write/read data on this connection. It's
> not clear what the CURLcode return value will be when you encounter an EOF,
> in particular, with curl_easy_recv() reading the last bit of data off the
> Will it be CURLE_OK with n=0 being returned as the number of bytes read?
I believe it will do exactly this (n=0 with CURLE_OK returned). Can't you just
try and see if this is indeed true? (And then we can add this detail to the
-- / daniel.haxx.seReceived on 2009-04-06