RE: cURL in git for windows does not support HTTP/2 anymore
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 25, 2025, 11:44 UTC
- Message-ID
- <01fd2b48-dc9e-ec69-b4f9-1183beb7f8a8@gmx.de>
- In-Reply-To
- <GV1PR10MB76004ED8EC327A2D11EDD2CB9B842@GV1PR10MB7600.EURPRD10.PROD.OUTLOOK.COM>
Hi Lars,
On Fri, 25 Apr 2025, Lars Eriksen - DSV wrote:
Show 6 quoted lines
> I'm sorry for the confusion, but the problem is not within the git > command itself. This works fine. But we use the distributed curl command > for POSTing data in a custom script when we deploy to production. > > So the problem is with how the curl command is built for windows. It > used to be built with HTTP/2 support, now it is not.
I am sorry, but Git for Windows is not really intended as a distribution model for the `curl.exe` command, it merely is shipped in Git for Windows because some scripts require it.
Have you tried using the `curl.exe` in `C:\Windows\system32`? If that does not work, you may need to switch to MSYS2 (which is a proper software distribution, not a hard-baked one like Git for Windows that includes bits and pieces necessary to run Git commands).
Ciao, Johannes