cURL / Mailing Lists / curl-library / Single Mail


curl_easy_send with CURLOPT_CONNECT_ONLY

From: Georg Lippitsch <>
Date: Sat, 07 Aug 2010 17:52:26 +0200


why do curl_easy_send and curl_easy_recv only work if

I could easily work around this by just commenting out the "if" in the
easy_connection function in easy.c and setting data->state.lastconnect
already when the connection is set up. Then, I was able to send custom
data to normal connections during transfer.

In my special case, I want to use the ftp control connection to
send/receive custom data while a large file is uploaded.
But I think, there might also be other uses for curl_easy_send without
CURLOPT_CONNECT_ONLY, for example to send custom data to an open
connection after a file was downloaded.

Are there any objections using curl_easy_send the way I did?

Thank you,

List admin:
Received on 2010-08-07