curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Test server SSL handshake using libcurl

From: Dan Fandrich via curl-library <>
Date: Fri, 6 Oct 2023 11:36:17 -0700

On Fri, Oct 06, 2023 at 02:54:22PM +0000, Taw via curl-library wrote:
> Hi, I am trying to use libcurl to test a handshake with an internal server.
> Unfortunately GET/HEAD methods do no work, I get 404 error from the server.
> Practically I would like the cURL equivalent of this command: "openssl s_client
> -connect <url>:<port> -cert=<cert path>"
> I can use OpenSSL lib to do it, but cURL is more elegant and OpenSSL is not
> that friendly.

You should be able to do that with CURLOPT_CONNECT_ONLY.
Received on 2023-10-06