I did this
We built libcurl with Visual Studio 2015 on Windows Server 2012 R2 (based on Windows 8.1) and linked it statically to an app that downloads a file via HTTP/1.1. This app was then executed on Windows 7. It failed with this error when trying to download this file:
schannel: failed to retrieve ALPN result
(see also #724, where ALPN support for schannel has been introduced)
Suspected root cause
The error occurs when libcurl calls QueryContextAttributes in schannel.c. This function has a minimum supported OS version of Windows 8.1 or Server 2012 R2. It is not guaranteed to work on older versions, like Windows 7 (where it fails when called with SECPKG_ATTR_APPLICATION_PROTOCOL).
I expected the following
The download should have succeeded.
curl/libcurl version
7.49.1 (all is well with 7.48.0)
operating system
- libcurl was built on Windows Server 2012 R2
- the build was used on Windows 7
I did this
We built libcurl with Visual Studio 2015 on Windows Server 2012 R2 (based on Windows 8.1) and linked it statically to an app that downloads a file via HTTP/1.1. This app was then executed on Windows 7. It failed with this error when trying to download this file:
(see also #724, where ALPN support for schannel has been introduced)
Suspected root cause
The error occurs when libcurl calls QueryContextAttributes in schannel.c. This function has a minimum supported OS version of Windows 8.1 or Server 2012 R2. It is not guaranteed to work on older versions, like Windows 7 (where it fails when called with
SECPKG_ATTR_APPLICATION_PROTOCOL).I expected the following
The download should have succeeded.
curl/libcurl version
7.49.1 (all is well with 7.48.0)
operating system