Discussion:
curl-users Digest, Vol 149, Issue 2
ghanashyam satpathy via curl-users
2018-01-03 06:07:49 UTC
Permalink
I have a question on CURL error code in following scenario:

I am using an authenticated(NTLM) HTTP proxy. And intentionally supplied
wrong credential.
curl_easy_perform() returned me CURLE_RECV_ERROR (56)

*Any idea how to get correct error code in such scenario.*

*Thanks*
Send curl-users mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of curl-users digest..."
1. Re: Upgrading curl on a Win 8.1 system (Daniel Stenberg)
2. Re: Upgrading curl on a Win 8.1 system (Ray Satiro)
----------------------------------------------------------------------
Message: 1
Date: Tue, 02 Jan 2018 10:57:36 +1300
Subject: Re: Upgrading curl on a Win 8.1 system
Content-Type: text/plain; format=flowed; charset="us-ascii"
However I do notice that the curl.exe here is much
larger than the 7.25.0 one was (3911 KB instead of 659 KB).
That makes me think that the newer curl.exe has had the DLL stuff
linked into it. Is that right?
When it comes to answers about specific binary builds you are generally
better off asking the one making the package. In this case however, it
seems you can just invoke "curl -V" and see that it works and shows a
reasonable version.
/ Daniel
------------------------------
Message: 2
Date: Tue, 2 Jan 2018 01:46:54 -0500
Subject: Re: Upgrading curl on a Win 8.1 system
Content-Type: text/plain; charset="utf-8"
However I do notice that the curl.exe here is much
larger than the 7.25.0 one was (3911 KB instead of 659 KB).
That makes me think that the newer curl.exe has had the DLL stuff
linked into it. Is that right?
When it comes to answers about specific binary builds you are
generally better off asking the one making the package. In this case
however, it seems you can just invoke "curl -V" and see that it works
and shows a reasonable version.
Yes, Marc Hörsken's build of curl includes libcurl in the executable
instead of in a dll. In other words it was built with a static library
of libcurl. This can be assumed since it does not include a DLL, and can
be confirmed by using a program like Dependency Walker which shows no
3rd party DLLs are required.
curl -V
curl 7.57.0 (i686-w64-mingw32) libcurl/7.57.0 OpenSSL/1.0.2h (WinSSL)
zlib/1.2.8 WinIDN libssh2/1.7.0_DEV
Release-Date: 2017-11-30
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL
libz TLS-SRP HTTPS-proxy MultiSSL
In the version information you can see it is built to use multiple SSL
libraries, OpenSSL and WinSSL (aka schannel). Notice (WinSSL) is in
parentheses and OpenSSL is not, which means it is set to use OpenSSL. It
can be switched to use WinSSL if CURL_SSL_BACKEND is set to schannel.
set CURL_SSL_BACKEND=schannel
curl -V
curl 7.57.0 (i686-w64-mingw32) libcurl/7.57.0 (OpenSSL/1.0.2h) WinSSL
zlib/1.2.8 WinIDN libssh2/1.7.0_DEV
Release-Date: 2017-11-30
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL
libz TLS-SRP MultiSSL
OpenSSL needs a CA certificate bundle file to verify the SSL
connections. You can download it from
https://curl.haxx.se/docs/caextract.html (click the cacert.pem) and then
put it in the same directory as curl.exe and name it curl-ca-bundle.crt,
and curl will auto detect it.
WinSSL does not need a CA certificate bundle since it uses the Windows
OS certificate store.
Granted I realize we could probably explain this better, somewhere. Marc
can you update your readme to explain multi-ssl and that
curl-ca-bundle.crt is needed by default?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cool.haxx.se/pipermail/curl-users/
attachments/20180102/e7c7fb13/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
curl-users mailing list
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
------------------------------
End of curl-users Digest, Vol 149, Issue 2
******************************************
Loading...