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
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Dan Fandrich via curl-library <curl-library_at_lists.haxx.se>
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.
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.
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-10-06