Hi Marco,
thanks for your answer.
I'm not sure that the use of CURLOPT_CONNECT_ONLY made impossible a
following call to curl_easy_perform() with the POST operation option.
Without SSL, so using simple HTTP, the problem i encountered doesn't appear.
On the other side using HTTPS, on already opened connections the following
call to curl_easy_perform() to send a POST return CURLE_OK but the Post
message is not sent.
BR
Massimo





Date: Wed, 25 Nov 2009 20:34:54 +0100
From: Marco Maggi <[email protected]>
To: libcurl development <[email protected]>
Subject: Re: Problem with Https Post on already opened connections
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

"Massimo" wrote:
> Estabilish  an  https  connection  towards  a  web  server
> without     any    http     message     exchange    (using
> curl_easy_setopt(myCurl, CURLOPT_CONNECT_ONLY, TRUE))
>
> After a while, send an  HTTP POST to the already connected
> web server.

It  is my understanding  that, if  you set  the connect-only
option,   "curl_easy_perform()"  will  only   establish  the
connection.   ;-)   After  that   you   have   to  use   the
"curl_easy_send()"  and  "curl_easy_recv()"  API; the  whole
protocol implementation is on your shoulders.

HTH
--
Marco Maggi
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to