I can navigate to a web site using a web browser. But trying a GET request with curl hangs. For example, the command curl -vL my_url gets stuck with the following log:
* Host $url:443 was resolved. * IPv6: *** * IPv4: *** * Trying ***:443... * Connected to $url (***) port 443 * ALPN: curl offers h2,http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /etc/ssl/cert.pem * CApath: none * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Unknown (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / [blank] / UNDEF * ALPN: server accepted http/1.1 * Server certificate: * subject: C=**; ST=***; L=***; O=***; CN=*** * start date: Nov 17 05:09:32 2023 GMT * expire date: Nov 17 14:59:59 2024 GMT * subjectAltName: host "***" matched cert's "***" * issuer: C=**; O=***; CN=*** * SSL certificate verify ok. * Certificate level 0: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption * Certificate level 1: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption * Certificate level 2: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption * using HTTP/1.x > GET / HTTP/1.1 > Host: *** > User-Agent: curl/8.6.0 > Accept: */* > * old SSL session ID is stale, removing What's the reason for this? I'm sorry, I can't reveal the website URL. I'm hoping that the above will reveal some information. I tried adding all the request headers from the browser, and the behavior doesn't change.
DNS lookup reveals the following information:
*** is an alias for ***.edgekey.net. ***.edgekey.net is an alias for ***.akamaiedge.net. ***.akamaiedge.net has address *** ***.akamaiedge.net has IPv6 address *** ***.akamaiedge.net has IPv6 address *** EDIT: Based on further investigation, it's not just curl, all non-browser clients I tried (postman, curl, wget, openssl s_client to get SSL certs) times out. I have tried fetching the pages using the exact same request headers with curl/postman as the browser without success.
User-Agent: curl? Does it block any request that cannot handle javascript? Any logs or configurations from the server you are attempting to connect to?aria2app, but then that was also blocked. Another work-around that I've got some hope for islynx.