Jump to content
Tuts 4 You

Latest Curl version 7.88.0 dosen't connect to internet!?


LCF-AT

Recommended Posts

Hi guys,

short question. Just have seen that a new Curl version was released today.

7.88.0
https://github.com/curl/curl/releases
https://curl.se/windows/

I did download (x86 & x64) and on a try using them with any URL I just get...

* getaddrinfo() thread failed to start
* Could not resolve host: google.com
* Closing connection 0
curl: (6) getaddrinfo() thread failed to start

....and the problem is that I don't get any message of my firewall to allow connection or not what I normally get if any new app tries to get into internet. Then I tried to download the pre Curl version of 7.87.0 and did exec the same command and here my Firewall does ask me to connect or deny and this works. Not sure what the problem is but I think the problem must be that curl 7.88.0 version right? Can anyone confirm that?

greetz

Link to comment
Share on other sites

45 minutes ago, LCF-AT said:

I think the problem must be that curl 7.88.0 version right?

 

No, that's a problem with your system and your firewall. :)

D:\>curl.exe --version
curl 7.88.0 (x86_64-w64-mingw32) libcurl/7.88.0 OpenSSL/3.0.8 (Schannel) zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 WinIDN libssh2/1.10.0 nghttp2/1.52.0 ngtcp2/0.13.1 nghttp3/0.8.0 libgsasl/2.2.0
Release-Date: 2023-02-15
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

D:\>curl.exe https://google.com
<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="https://www.google.com/">here</A>.
</BODY></HTML>

 

  • Like 1
Link to comment
Share on other sites

Hhmmm! Thanks for testing @kao but what could be the problem? The older versions of curl are working and my FW did ask me to allow or deny and in this latest version 7.88.0 my FW does nothing / no asking or anything and curl just does print out error above what normaly comes when the app has no access to internet. Strange! The problem is I can not add any app / rule in the firewall itself and have to do this manually. But anyway, just still do wonder why my FW does nothing in this case with the latest curl version x86 and x64 (I tried both). All other older versions do work and my FW is asking on first time. Damn! :(

greetz

Link to comment
Share on other sites

Hi @cipsi,

no idea whether its same problem but I also don't wanna compile a new curl version. I think in this case I still have to use the older version/s and wait till next curl release to see whether the problem was fixed / gone. So the problem must be inside of curl source anywhere. As I said before, all older versions I used in the past are working and each time my FW (GlassWire) did ask me to allow or deny the curl process on first run and this latest version does nothing.

Example: In normal case....

First run of curl version curl-7.87.0-win64-mingw
----------------------------------------------------
Internet is disabled for this version at the moment by my FW
and CMD does print this output.....

*   Trying 142.250.184.206:443...
* connect to 142.250.184.206 port 443 failed: Bad access
* Failed to connect to google.com port 443 after 66 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to google.com port 443 after 66 ms: Couldn't connect to server

Right after this first try to access internet my FW does popup "First Network access"
and I need to choose "Allow or Deny" so that the rules for this file can be created
in Firewall rules of Windows

...now trying same with latest version and I should normaly get same but I get this....

First run of curl version curl-7.88.0-win64-mingw
----------------------------------------------------
Internet is disabled for this version at the moment by my FW
and CMD does print this output.....

* getaddrinfo() thread failed to start
* Could not resolve host: google.com
* Closing connection 0
curl: (6) getaddrinfo() thread failed to start

So you see it fails already at getaddrinfo thread what fails to start

...I tried using latest curl 7.88.0 in Windows Sandbox what does not have a Firewall and there it works. Anyway, so I think problem must be inside of curl somewhere because all other lower versions do work to connect to internet / Firewall asking and to create rules but this latest fails.

PS: I tried to use direct IP address of google 142.250.184.206:443 and this works. I get this...

*   Trying 142.250.184.206:443...
* connect to 142.250.184.206 port 443 failed: Bad access
* Failed to connect to 142.250.184.206 port 443 after 3 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to 142.250.184.206 port 443 after 3 ms: Couldn't connect to server

Now FW does ask me and I allow it...
...one next try I get this...

*   Trying 142.250.184.206:443...
* Connected to 142.250.184.206 (142.250.184.206) port 443 (#0)
> HEAD / HTTP/1.1
> Host: 142.250.184.206:443
> Accept: */*
> Accept-Encoding: deflate, gzip, br, zstd
> user-agent: Mozilla/5.0
>
* Empty reply from server
* Closing connection 0
curl: (52) Empty reply from server

....works. Only getaddrinfo thread fails (the thread not function?). So what is this value 6, any error code curl is using?

greetz

Link to comment
Share on other sites

Haha! :) New Curl version 7.88.1 is out today and OH WONDER, its working again. :) Just after 5 days a new update, hehe. ;)

https://curl.se/changes.html#7_88_1

greetz

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...