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: How to find return code/exit code after sending a mail command

From: Daniel Stenberg via curl-users <>
Date: Mon, 12 Oct 2020 09:32:43 +0200 (CEST)

On Sun, 11 Oct 2020, Jason Liam via curl-users wrote:

> int x = WinExec(command, SW_HIDE);
> std::cout<<"code" <<x<<std::endl;
> And the output on the console shows *code:33*
> *Is this the return code of the command.Can i use this to check the success
> of the sending process?*I am just learning networking so sorry if this is
> pretty basic.

That's not a networking question. That's a question about how WinExec() works
and what its return codes mean, and I don't think this is a suitable mailing
list to ask that - we can answer questions about curl itself though.

  I personally don't know but the Microsoft docs seem to say that anythin above
31 means the invokation failed.

  / | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
Received on 2020-10-12