curl / Mailing Lists / curl-users / 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: use of --libcurl

From: Daniel Stenberg via curl-users <>
Date: Mon, 12 Aug 2019 09:16:42 +0200 (CEST)

On Sun, 11 Aug 2019, toby via curl-users wrote:

> curl --libcurl smtps.c -v -k --ssl-reqd
> smtps://"user:password" --mail-from --mail-rcpt
> -T ./email.txt

> the -v -k --ssl-reqd options result in good libcurl code but the -T option
> results in commented code in the resulting smtps.c

> is there something else needed to get it in smtps.c?

The main reason for this is quite simply because the curl tool makes uploads
using the callback CURLOPT_READFUNCTION and we've not made --libcurl show that
in any decent way.

One way to make this better could be to include a template callback into the
--libcurl output, but that isn't there right now.

  / | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
Received on 2019-08-12