When using CURLOPT_CONNECT_ONLY, how do you detect EOF?
Date: Mon, 6 Apr 2009 12:00:49 -0700
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 connection.
Will it be CURLE_OK with n=0 being returned as the number of bytes read?
Will it be some other error code (none of which look very EOF-like)?
Received on 2009-04-06