cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl_easy_send with CURLOPT_CONNECT_ONLY

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

Hi,

why do curl_easy_send and curl_easy_recv only work if
CURLOPT_CONNECT_ONLY is set?

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,

Georg
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-07