Curl hangs on some sites when using --head
#14670
-
Hei there! I think, though I'm not sure, that this issue is caused by a wrong configuration of target servers that's why I'm not opening a ticket. This is the simple command used
$ curl --version
curl 8.9.1 (x86_64-w64-mingw32) libcurl/8.9.1 LibreSSL/3.9.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 WinIDN libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.62.1 ngtcp2/1.6.0 nghttp3/1.4.0
Release-Date: 2024-07-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL SSPI threadsafe UnixSockets zstd |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Looked at http://scms.it/, which 301 redirects to https://scms.it/. It then answers HTTP/2 with a 503 and headers, but never closes the response body. That is why curl "hangs", it waits for the response stream to be closed by the server. With |
Beta Was this translation helpful? Give feedback.
-
I made #14685 which fixes this. Please verify if you can. |
Beta Was this translation helpful? Give feedback.
-
#14685 was merged |
Beta Was this translation helpful? Give feedback.
I made #14685 which fixes this. Please verify if you can.