cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: Problem with Https Post on already opened connections

From: Massimo <massimo.schiappa_at_gmail.com>
Date: Thu, 26 Nov 2009 12:35:38 +0100

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 <marco.maggi-ipsu_at_poste.it>
To: libcurl development <curl-library_at_cool.haxx.se>
Subject: Re: Problem with Https Post on already opened connections
Message-ID: <87zl6a4cv5.fsf_at_rapitore.luna>
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
Received on 2009-11-26

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET