Re: cURL in git for windows does not support HTTP/2 anymore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lars,

On Thu, 24 Apr 2025, Lars Eriksen - DSV wrote:

> What did you do before the bug happened? (Steps to reproduce your issue)
> Upgraded to a recent git for windows found here: https://git-scm.com/downloads
> 
> What did you expect to happen? (Expected behavior)
> The embedded curl should be able to use HTTP/2 against our backend.
> 
> What happened instead? (Actual behavior)
> After updating git for windows curl is unable to authenticate to our backend that requires HTTP/2. curl --version shows it is not compiled in. It worked in the prior version, 2.39.0.windows.2

Careful: `curl.exe` does not necessarily show the same capabilities as are
in effect when using Git. The reason is that the default SSL/TLS backend
is Secure Channel, whereas Git can be configured to use OpenSSL instead.

And looking at the most recent build of Git for Windows' cURL, I see in
https://github.com/git-for-windows/git-for-windows-automation/actions/runs/14221753030/job/39851304688#step:16:1230
that the OpenSSL version is compiled with HTTP/2 support whereas
https://github.com/git-for-windows/git-for-windows-automation/actions/runs/14221753030/job/39851304688#step:16:2854
shows that the Secure Channel version is compiled without HTTP/2 support.

When you configure `http.sslBackend = openssl`, does it work then?

Ciao,
Johannes

P.S.: The bug reporting template of `git bugreport` sadly omits useful
hints such as including the contents of `/etc/install-options.txt`, where
others could easily see whether you chose the Secure Channel or the
OpenSSL backend as Git's default.

> 
> What's different between what you expected and what actually happened?
> I expected curl to be able to run as before when contacting our backend in our maintenance scripts. I'm not allowed to install a custom curl on our corporate network, and the windows version does not support HTTP/2 either. But the git version used to.
> 
> Anything else you want to add:
> 
> Please review the rest of the bug report below.
> You can delete any lines you don't wish to share.
> 
> 
> [System Info]
> git version:
> git version 2.49.0.windows.1
> cpu: x86_64
> built from commit: cca1f38702730b35f52c29efd62864b85e85ddcc
> sizeof-long: 4
> sizeof-size_t: 8
> shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
> feature: fsmonitor--daemon
> libcurl: 8.12.1
> OpenSSL: OpenSSL 3.2.4 11 Feb 2025
> zlib: 1.3.1
> uname: Windows 10.0 20348
> compiler info: gnuc: 14.2
> libc info: no libc information available
> $SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe
> 
> 
> [Enabled Hooks]
> not run from a git repository - no hooks to show
> 
> DSV internal
> 
> 





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux