cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: https client

From: Manuel D. Jiménez <mjimenez_at_securitasdirect.es>
Date: Fri, 21 Jul 2006 13:48:03 +0200

Thank you, Armel.

I tried to run the example and I got the error "libcurl was built with SSL
disabled, https: not supported!". I compiled cURL defining USE_SSL but this
is not enough.

I found in another post that I have to configure cURL with
"./configure --with-ssl=<openssl_path>", but I am using Visual C++, where
there is no makefile. What can I do?

Best regards.

----- Original Message -----
From: "Armel Asselin" <asselin.armel_at_wanadoo.fr>
To: "libcurl development" <curl-library_at_cool.haxx.se>
Sent: Thursday, July 20, 2006 7:20 PM
Subject: Re: https client

yes, in doc/examples directory, https.c

note that to actually be able to connect you need to have a certificate file
(something like cacert.pem), there is one on libcurl site
(http://curl.haxx.se/docs/caextract.html) which is pretty complete and you
have to provide it with the option CURLOPT_CAINFO (path to the file).
Failing to provide the file will finish with an error telling that the
server cannot be trusted (for sure its certificate cannot be verified).

At least this is what I did (I'm somewhat a beginner).

HIH
Armel

----- Original Message -----
From: "Manuel D. Jiménez" <mjimenez_at_securitasdirect.es>
To: <curl-library_at_cool.haxx.se>
Sent: Thursday, July 20, 2006 6:52 PM
Subject: https client

> Hi,
>
> I am trying to use the curl library to build a client that just connects a
> HTTPS server, sends a GET request and receives the response. I think it is
> a
> very usual issue, so I think there must be an example that does it. Is
> there
> any?
>
> (I am using Win32. I compiled the library successfully and I am ready to
> use
> it)
>
> Thank you, and best regards,
>
> Manué

Este mensaje se dirige exclusivamente a su destinatario.
Puede contener información confidencial sometida a secreto profesional
o cuya divulgación esté prohibida, en virtud de la legislación vigente.
No está permitida su divulgación, copia o distribución a terceros sin la
autorización previa y por escrito de Securitas Direct España. Si recibe este
correo sin ser el destinatario del mismo, le rogamos proceda a su eliminación
y lo ponga en conocimiento del emisor.

This e-mail is intended exclusively for the individual or entity to which
it is addressed. This e-mail may contain confidential or legally privileged information,
which may not be disclosed under current legislation. Any form of disclosure, copying
or distribution of this e-mail is strictly prohibited, save with written authorization
from Securitas Direct España. If you receive this mail without being the addressee,
we request you to proceed to its elimination and notify the issuer about it.
Received on 2006-07-21