There is a result of sending a POST request to the https site via the terminal

curl: (56) SSLRead() return error -9841 

curl --version

 curl 7.43.0 (x86_64-apple-darwin15.0) libcurl/7.43.0 SecureTransport zlib/1.2.5 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets 

What steps need to be taken to make curl work?

PS Previously reinstalled it with the command brew install --with-openssl curl

    1 answer 1

    It turned out that it was necessary to restart the computer after reinstalling curl. Now everything works.

    • It is not the answer to the question. To leave your comments or ask the author to clarify, leave a comment to the appropriate post. - From the queue of checks - Ivan Pshenitsyn
    • four
      @IvanPshenitsyn is the author's answer to his own question, so that is the answer. - Denis
    • @Denis confused me not the authorship but the content of the "answer". This is a strong stretch can be called such. Especially in the current wording. - Ivan Pshenitsyn
    • one
      For what cons, colleagues? - Dmitry Petukhov
    • 6
      No, gentlemen, this is definitely the answer . It contains actions that led to the disappearance of the problem. Perhaps, in these actions is hidden something deeper and meaningful, just the author could not get to this. Or perhaps this is a coincidence and something else really happened. Because of this ambiguity, this is a bad answer, but an answer . - D-side