clj-on-windows

borkdude 2022-12-04T11:15:20.289469Z

Can people running Windows in here, type curl --version and report the output + the Windows version? In a thread please.

borkdude 2022-12-04T11:15:28.330659Z

๐Ÿงต

borkdude 2022-12-04T11:15:53.843389Z

Also try if this works: curl --compressed

lread 2022-12-04T17:02:50.502419Z

On Windows 10 under cmd.exe:

Microsoft Windows [Version 10.0.19045.2251]
(c) Microsoft Corporation. All rights reserved.

C:\Users\lee>where curl
C:\Windows\System32\curl.exe

C:\Users\lee>curl --version
curl 7.83.1 (Windows) libcurl/7.83.1 Schannel
Release-Date: 2022-05-13
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp
Features: AsynchDNS HSTS IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI UnixSockets

C:\Users\lee>curl --compressed 
curl: option --compressed: the installed libcurl version doesn't support this
curl: try 'curl --help' for more information

C:\Users\lee>

โŒ 1
borkdude 2022-12-04T17:04:09.050869Z

OK, I wonder about Windows 11H2. Perhaps @ales.najmann?

littleli 2022-12-04T18:47:17.722949Z

Sorry I don't have an instance with Win 11 yet. But Win10 really contains stone age version of curl which does not support this. And what's even worse it's quite difficult to setup override.

borkdude 2022-12-04T18:49:41.402309Z

The reason I'm asking is, I am using windows 11 and it does work for me, but I don't know if I once copied the binary from scoop into system32 ๐Ÿ˜…

littleli 2022-12-04T18:50:11.163959Z

scoop contains newer version of curl... but I'm still not able to run just curl but I have to use full path to scoop binary, probably because I'm unable to go on PATH before system one.

littleli 2022-12-04T18:51:40.403259Z

If they ship still the old version of curl with Win11 I don't know what to say ๐Ÿ˜ž Sad.

borkdude 2022-12-04T18:53:02.769629Z

that's what I'm trying to find out :)

littleli 2022-12-04T18:54:43.406149Z

I'm afraid they really do... check: https://curl.se/windows/microsoft.html https://curl.se/windows/

littleli 2022-12-04T19:53:47.290479Z

Depending on a usecase one can use Powershell commandlet to download a file or a page like this

Invoke-WebRequest  -OutFile C:\file.txt
It's probably capable of doing relatively broad range of functionality as a http client.

borkdude 2022-12-04T19:55:03.867039Z

I'm approaching this from babashka's babashka.curl

borkdude 2022-12-04T19:55:21.048449Z

Which uses --compressed by default (for a while now)

borkdude 2022-12-04T19:55:34.416849Z

and this crashes when curl doesn't support that argument (unfortunately)

littleli 2022-12-04T19:56:55.922379Z

yeah ๐Ÿ˜•

seancorfield 2022-12-04T21:26:47.139229Z

@borkdude Stock Windows 11, latest public version:

Microsoft Windows [Version 10.0.22621.900]
(c) Microsoft Corporation. All rights reserved.

C:\Users\seanc>curl --version
curl 7.83.1 (Windows) libcurl/7.83.1 Schannel
Release-Date: 2022-05-13
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp
Features: AsynchDNS HSTS IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI UnixSockets

C:\Users\seanc>curl --compressed 
curl: option --compressed: the installed libcurl version doesn't support this
curl: try 'curl --help' for more information

C:\Users\seanc>
So same as @ales.najmann

borkdude 2022-12-04T21:27:31.454179Z

Thank you!

seancorfield 2022-12-04T21:27:59.553059Z

And the very latest Windows 11 Insider build -- more recent curl but still no compressed option:

Microsoft Windows [Version 10.0.25252.1010]
(c) Microsoft Corporation. All rights reserved.

C:\Users\seanc>curl --version
curl 7.85.0 (Windows) libcurl/7.85.0 Schannel
Release-Date: 2022-09-06
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp
Features: AsynchDNS HSTS IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI threadsafe UnixSockets

C:\Users\seanc>curl --compressed 
curl: option --compressed: the installed libcurl version doesn't support this
curl: try 'curl --help' for more information

C:\Users\seanc>

borkdude 2022-12-04T21:28:38.844949Z

I've been asking for over a year now: https://twitter.com/borkdude/status/1394990041680818179

seancorfield 2022-12-04T21:29:50.015539Z

Given how much MS have promoted WSL2 as the "programmers' option", I don't know how inclined they would be to expend effort on updating CMD...?

borkdude 2022-12-04T21:30:24.457459Z

This isn't cmd specific, it's a binary which lives in system32 which affects the whole system

seancorfield 2022-12-04T21:30:50.256509Z

C:\Users\seanc>wsl.exe curl --version
curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets

C:\Users\seanc>wsl.exe curl --compressed 

<!-- This site was created in Webflow. -->
<!-- Last Published: Fri Nov 13 2015 01:48:45 GMT+0000 (UTC) -->
<html lang="en" data-wf-site="56414d6fc8c27cad0f4e12e7" data-wf-page="5643ac587b1f28dc58ed6b89">
<head>
๐Ÿ™‚

seancorfield 2022-12-04T21:31:42.218309Z

(assuming you have WSL2 installed of course)

seancorfield 2022-12-04T21:31:55.180479Z

I know... not helpful... I get it...

littleli 2022-12-04T21:37:06.612879Z

After manual intervention in system settings, I made it working. Skilled devs will know what to do, but it's annoying that it's not working on the first run:

PowerShell 7.3.0
Loading personal and system profiles took 885ms.
~ $ curl --compressed 
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="">here</A>.
</BODY></HTML>
~ $ curl --version
curl 7.86.0 (x86_64-w64-mingw32) libcurl/7.86.0 OpenSSL/3.0.7 (Schannel) zlib/1.2.13 brotli/1.0.9 zstd/1.5.2 WinIDN libssh2/1.10.0 nghttp2/1.51.0 ngtcp2/0.11.0 nghttp3/0.7.1 libgsasl/2.2.0
Release-Date: 2022-10-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli gsasl HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL SSPI threadsafe TLS-SRP UnixSockets zstd
~ $

borkdude 2022-12-04T22:33:44.277679Z

Apparently it does help when you persist :) https://twitter.com/DHowett/status/1599530152223907840

๐Ÿ‘ 2
๐Ÿ‘๐Ÿป 1
๐Ÿ’ช 1